Skip to content

Commit b74c4e5

Browse files
authored
upgrade mono-dev (#38)
1 parent cf255c2 commit b74c4e5

10 files changed

Lines changed: 132 additions & 89 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,23 @@ on:
88
- main
99
jobs:
1010
check:
11-
runs-on: ubuntu-latest
11+
runs-on: blacksmith-4vcpu-ubuntu-2404
1212
steps:
1313
- uses: Pistonight/mono-dev/actions/setup@main
1414
with:
15-
mono-dev: packages
1615
rust: stable
1716
- run: task check
1817
test:
19-
runs-on: ubuntu-latest
18+
runs-on: blacksmith-4vcpu-ubuntu-2404
2019
steps:
2120
- uses: Pistonight/mono-dev/actions/setup@main
2221
with:
23-
mono-dev: packages
2422
rust: stable
2523
- run: task test
2624
doc:
27-
runs-on: ubuntu-latest
25+
runs-on: blacksmith-4vcpu-ubuntu-2404
2826
steps:
2927
- uses: Pistonight/mono-dev/actions/setup@main
3028
with:
31-
mono-dev: packages
3229
rust: nightly
33-
- run: task doc
30+
- run: task doc-ci

.github/workflows/pages.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ on:
55
- main
66
jobs:
77
build:
8-
runs-on: ubuntu-latest
8+
runs-on: blacksmith-4vcpu-ubuntu-2404
99
steps:
1010
- uses: Pistonight/mono-dev/actions/setup@main
1111
with:
12-
mono-dev: packages
1312
rust: nightly
14-
- run: task exec -- doc
15-
- uses: actions/upload-pages-artifact@v3
13+
- run: task doc-ci
14+
- uses: actions/upload-pages-artifact@v5
1615
with:
1716
path: target/doc
1817
retention-days: 3
@@ -29,5 +28,5 @@ jobs:
2928
runs-on: ubuntu-latest
3029
steps:
3130
- id: deployment
32-
uses: actions/deploy-pages@v4
31+
uses: actions/deploy-pages@v5
3332

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/target
22
/packages/mono-dev
3+
/mono-dev
34
/Cargo.lock

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Michael
3+
Copyright (c) 2026 Michael
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Taskfile.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ version: '3'
22

33
includes:
44
common:
5-
taskfile: ./packages/mono-dev/task/common.yaml
5+
taskfile: ./mono-dev/task/common.yaml
66
flatten: true
77
optional: true
88

99
cargo:
10-
taskfile: ./packages/mono-dev/task/cargo.yaml
10+
taskfile: ./mono-dev/task/cargo.yaml
1111
optional: true
1212
internal: true
1313

@@ -18,38 +18,53 @@ includes:
1818

1919
tasks:
2020
install-cargo-extra-tools:
21+
desc: Install or upgrade extra tools needed for development using cargo onto the system
2122
aliases: [icets]
2223
cmds:
2324
- task: cargo-binstall
2425
vars:
25-
PACKAGES: cargo-watch live-server
26+
PACKAGES: shwoop
2627

2728
install:
28-
- rm -rf packages/mono-dev
29-
- mkdir -p packages
30-
- git clone https://github.com/Pistonight/mono-dev --depth 1 packages/mono-dev
29+
desc: Install or sync project dependencies
30+
cmds:
31+
- rm -rf mono-dev
32+
- git clone https://github.com/Pistonight/mono-dev --depth 1
3133

3234
check:
35+
desc: Run linters to check the code
3336
cmds:
3437
- task: pm:check
3538
- task: cu-proc-macros:check
3639
- task: cu:check
3740
- task: terminal-tests:check
3841

42+
fix:
43+
desc: Fix style issues
44+
cmds:
45+
- task: pm:fix
46+
- task: cu-proc-macros:fix
47+
- task: cu:fix
48+
- task: terminal-tests:fix
49+
3950
test:
51+
desc: Run tests
4052
cmds:
4153
- task: pm:test
4254
- task: cu:test
4355
- task: terminal-tests:run
4456

4557
dev-doc:
58+
desc: Watch and serve documentation
4659
cmds:
4760
- task: cargo:watch-serve-doc
4861
vars:
62+
SHWOOP_ARGS: -w packages
4963
CARGO_ARGS: --features full,nightly
5064
TOOLCHAIN: +nightly
5165

52-
doc:
66+
doc-ci:
67+
desc: (CI Only) Build documentation
5368
cmds:
5469
# note: require nightly toolchain in CI
5570
- cargo doc --no-deps --features full,nightly -p pistonite-cu -p pistonite-cu-proc-macros -p pistonite-pm
@@ -62,8 +77,14 @@ tasks:
6277
silent: true
6378
6479
publish:
80+
desc: Publish a release
6581
cmds:
6682
# order matters
6783
- task: pm:publish
6884
- task: cu-proc-macros:publish
6985
- task: cu:publish
86+
87+
upgrade:
88+
desc: Upgrade tools and/or dependencies
89+
cmds:
90+
- cargo upgrade

packages/copper-proc-macros/Taskfile.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ version: '3'
22

33
includes:
44
cargo:
5-
taskfile: ../mono-dev/task/cargo.yaml
5+
taskfile: ../../mono-dev/task/cargo.yaml
66
internal: true
77
optional: true
88

99
tasks:
1010
check:
11+
desc: Run linters to check the code
1112
cmds:
1213
- task: cargo:clippy-all
1314
- task: cargo:fmt-check
1415
fix:
16+
desc: Fix style issues
1517
cmds:
1618
- task: cargo:fmt-fix
1719
publish:
20+
desc: Publish a release
1821
cmds:
1922
- cmd: cargo publish
2023
ignore_error: true

packages/copper/Taskfile.yml

Lines changed: 61 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,76 @@ version: '3'
22

33
includes:
44
cargo:
5-
taskfile: ../mono-dev/task/cargo.yaml
5+
taskfile: ../../mono-dev/task/cargo.yaml
66
internal: true
77
optional: true
88

99
tasks:
1010
check:
11-
- task: cargo:clippy-package-feature
12-
vars:
13-
PACKAGE: pistonite-cu
14-
FEATURES: default
15-
- task: cargo:clippy-package-feature
16-
vars:
17-
PACKAGE: pistonite-cu
18-
FEATURES: print
19-
- task: cargo:clippy-package-feature
20-
vars:
21-
PACKAGE: pistonite-cu
22-
FEATURES: cli
23-
- task: cargo:clippy-package-feature
24-
vars:
25-
PACKAGE: pistonite-cu
26-
FEATURES: prompt
27-
- task: cargo:clippy-package-feature
28-
vars:
29-
PACKAGE: pistonite-cu
30-
FEATURES: prompt,cli
31-
- task: cargo:clippy-package-feature
32-
vars:
33-
PACKAGE: pistonite-cu
34-
FEATURES: cli,coroutine
35-
- task: cargo:clippy-package-feature
36-
vars:
37-
PACKAGE: pistonite-cu
38-
FEATURES: fs
39-
- task: cargo:clippy-package-feature
40-
vars:
41-
PACKAGE: pistonite-cu
42-
FEATURES: process
43-
- task: cargo:clippy-package-feature
44-
vars:
45-
PACKAGE: pistonite-cu
46-
FEATURES: parse
47-
- task: cargo:clippy-package-feature
48-
vars:
49-
PACKAGE: pistonite-cu
50-
FEATURES: json,yaml,toml
51-
- task: cargo:clippy-package-feature
52-
vars:
53-
PACKAGE: pistonite-cu
54-
FEATURES: full
55-
- task: cargo:fmt-check
56-
- cmd: echo "checking default feature"; grep "^default = \[\]$" Cargo.toml
11+
desc: Run linters to check the code
12+
cmds:
13+
- task: cargo:clippy-package-feature
14+
vars:
15+
PACKAGE: pistonite-cu
16+
FEATURES: default
17+
- task: cargo:clippy-package-feature
18+
vars:
19+
PACKAGE: pistonite-cu
20+
FEATURES: print
21+
- task: cargo:clippy-package-feature
22+
vars:
23+
PACKAGE: pistonite-cu
24+
FEATURES: cli
25+
- task: cargo:clippy-package-feature
26+
vars:
27+
PACKAGE: pistonite-cu
28+
FEATURES: prompt
29+
- task: cargo:clippy-package-feature
30+
vars:
31+
PACKAGE: pistonite-cu
32+
FEATURES: prompt,cli
33+
- task: cargo:clippy-package-feature
34+
vars:
35+
PACKAGE: pistonite-cu
36+
FEATURES: cli,coroutine
37+
- task: cargo:clippy-package-feature
38+
vars:
39+
PACKAGE: pistonite-cu
40+
FEATURES: fs
41+
- task: cargo:clippy-package-feature
42+
vars:
43+
PACKAGE: pistonite-cu
44+
FEATURES: process
45+
- task: cargo:clippy-package-feature
46+
vars:
47+
PACKAGE: pistonite-cu
48+
FEATURES: parse
49+
- task: cargo:clippy-package-feature
50+
vars:
51+
PACKAGE: pistonite-cu
52+
FEATURES: json,yaml,toml
53+
- task: cargo:clippy-package-feature
54+
vars:
55+
PACKAGE: pistonite-cu
56+
FEATURES: full
57+
- task: cargo:fmt-check
58+
- cmd: echo "checking default feature"; grep "^default = \[\]$" Cargo.toml
5759

5860
fix:
59-
- task: cargo:fmt-fix
61+
desc: Fix style issues
62+
cmds:
63+
- task: cargo:fmt-fix
6064

6165

6266
test:
63-
- cargo test
64-
- cargo test --features cli
65-
- cargo test --features full
67+
desc: Run tests
68+
cmds:
69+
- cargo test
70+
- cargo test --features cli
71+
- cargo test --features full
6672

6773
publish:
68-
- cmd: cargo publish
69-
ignore_error: true
74+
desc: Publish a release
75+
cmds:
76+
- cmd: cargo publish
77+
ignore_error: true

packages/copper/src/fs/bin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Binary path registry
22
//!
3-
//! This util to provide a unified way of getting the path of a program to run,
3+
//! This util provides a unified way of getting the path of a program to run,
44
//! for example, let's say you are making a build script for a project, and
55
//! you want to find the compiler program `gcc` in the following manner:
66
//! - Most users would use the project-provided toolchain at `./toolchain/compiler/gcc`

packages/promethium/Taskfile.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,28 @@ version: '3'
22

33
includes:
44
cargo:
5-
taskfile: ../mono-dev/task/cargo.yaml
5+
taskfile: ../../mono-dev/task/cargo.yaml
66
internal: true
77
optional: true
88

99
tasks:
1010
check:
11-
- task: cargo:clippy-all
12-
- task: cargo:fmt-check
11+
desc: Run linters to check the code
12+
cmds:
13+
- task: cargo:clippy-all
14+
- task: cargo:fmt-check
1315
fix:
14-
- task: cargo:fmt-fix
16+
desc: Fix style issues
17+
cmds:
18+
- task: cargo:fmt-fix
1519
publish:
16-
- cmd: cargo publish
17-
ignore_error: true
20+
desc: Publish a release
21+
cmds:
22+
- cmd: cargo publish
23+
ignore_error: true
1824
test:
19-
- cargo test
20-
- cargo test --features full
21-
- cargo test --no-default-features --features full
25+
desc: Run tests
26+
cmds:
27+
- cargo test
28+
- cargo test --features full
29+
- cargo test --no-default-features --features full

packages/terminal-tests/Taskfile.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@ version: '3'
22

33
includes:
44
cargo:
5-
taskfile: ../mono-dev/task/cargo.yaml
5+
taskfile: ../../mono-dev/task/cargo.yaml
66
internal: true
77
optional: true
88

99
tasks:
1010
run:
11-
- cargo run --features bin -- {{.CLI_ARGS}}
11+
desc: Run terminal tests
12+
cmds:
13+
- cargo run --features bin -- {{.CLI_ARGS}}
1214
check:
13-
- task: cargo:clippy-all
14-
- task: cargo:fmt-check
15+
desc: Run linters to check the code
16+
cmds:
17+
- task: cargo:clippy-all
18+
- task: cargo:fmt-check
1519
fix:
16-
- task: cargo:fmt-fix
20+
desc: Fix style issues
21+
cmds:
22+
- task: cargo:fmt-fix

0 commit comments

Comments
 (0)