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 1
1
name : Build Latest
2
2
3
3
on :
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
18
11
env :
19
12
CARGO_TERM_COLOR : always
20
13
@@ -26,35 +19,9 @@ concurrency:
26
19
cancel-in-progress : true
27
20
28
21
jobs :
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
55
22
# Build the site
56
23
build_site :
57
- needs : test_site
24
+ if : ${{ github.event.workflow_run.conclusion == "success" }}
58
25
runs-on : ubuntu-latest
59
26
steps :
60
27
- uses : actions/checkout@v4
94
61
# Create the release without assets
95
62
create_release :
96
63
name : Create release
97
- needs : [test_bin, build_site]
64
+ needs : [build_site]
98
65
runs-on : ubuntu-latest
99
66
env :
100
67
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
114
81
# Create the binaries and upload them as release assets
115
82
create_binaries :
116
83
name : Create binary
117
- needs : [test_bin, create_release]
84
+ needs : [create_release]
118
85
runs-on : ${{ matrix.os }}
119
86
env :
120
87
BINARY_EXT : ${{ matrix.os == 'windows-latest' && '.exe' || '' }}
Original file line number Diff line number Diff line change 1
1
name : Validate
2
2
3
3
on :
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"
17
4
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
31
8
env :
32
9
CARGO_TERM_COLOR : always
33
10
51
28
run : rustup target add wasm32-unknown-unknown
52
29
- name : Check feature combinations
53
30
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