File tree Expand file tree Collapse file tree 2 files changed +15
-69
lines changed Expand file tree Collapse file tree 2 files changed +15
-69
lines changed Original file line number Diff line number Diff line change 11name : Build Latest
22
33on :
4- push :
5- branches : ["main"]
6- paths :
7- - " Cargo.toml"
8- - " Cargo.lock"
9- - " src/**"
10- - " parser/**"
11- - " site/**"
12- - " pad/**"
13- - " tests*/**"
14- - " changelog.md"
15- - " readme.md"
16- - " .github/workflows/build_latest.yml"
17-
4+ workflow_run :
5+ workflows :
6+ - Validate
7+ types :
8+ - completed
9+ branches :
10+ - main
1811env :
1912 CARGO_TERM_COLOR : always
2013
@@ -26,35 +19,9 @@ concurrency:
2619 cancel-in-progress : true
2720
2821jobs :
29- # Test the interpreter
30- test_bin :
31- runs-on : ubuntu-latest
32- steps :
33- - uses : actions/checkout@v4
34- - uses : actions/cache@v4
35- with :
36- path : target
37- key : build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
38- restore-keys : |
39- build-${{ runner.os }}-
40- - name : Run interpreter tests
41- run : cargo test --lib
42- # Test the site
43- test_site :
44- runs-on : ubuntu-latest
45- steps :
46- - uses : actions/checkout@v4
47- - uses : actions/cache@v4
48- with :
49- path : target
50- key : build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
51- restore-keys : |
52- build-${{ runner.os }}-
53- - name : Run site tests
54- run : cargo test -p site
5522 # Build the site
5623 build_site :
57- needs : test_site
24+ if : ${{ github.event.workflow_run.conclusion == "success" }}
5825 runs-on : ubuntu-latest
5926 steps :
6027 - uses : actions/checkout@v4
9461 # Create the release without assets
9562 create_release :
9663 name : Create release
97- needs : [test_bin, build_site]
64+ needs : [build_site]
9865 runs-on : ubuntu-latest
9966 env :
10067 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
11481 # Create the binaries and upload them as release assets
11582 create_binaries :
11683 name : Create binary
117- needs : [test_bin, create_release]
84+ needs : [create_release]
11885 runs-on : ${{ matrix.os }}
11986 env :
12087 BINARY_EXT : ${{ matrix.os == 'windows-latest' && '.exe' || '' }}
Original file line number Diff line number Diff line change 11name : Validate
22
33on :
4- push :
5- branches : ["main"]
6- paths :
7- - " Cargo.toml"
8- - " Cargo.lock"
9- - " src/**"
10- - " parser/**"
11- - " site/**"
12- - " pad/**"
13- - " tests*/**"
14- - " changelog.md"
15- - " readme.md"
16- - " .github/workflows/validate.yml"
174 pull_request :
18- branches : ["main"]
19- paths :
20- - " Cargo.toml"
21- - " Cargo.lock"
22- - " src/**"
23- - " parser/**"
24- - " site/**"
25- - " pad/**"
26- - " tests*/**"
27- - " changelog.md"
28- - " readme.md"
29- - " .github/workflows/validate.yml"
30-
5+ push :
6+ branches-ignore :
7+ - site
318env :
329 CARGO_TERM_COLOR : always
3310
5128 run : rustup target add wasm32-unknown-unknown
5229 - name : Check feature combinations
5330 run : cargo run ./.github/features.ua
31+ - name : Run tests
32+ run : cargo test --workspace --no-fail-fast --all-targets --all-features
You can’t perform that action at this time.
0 commit comments