This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree 2 files changed +8
-17
lines changed
2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
test :
12
- name : Docker
12
+ name : Build and test
13
13
timeout-minutes : 20
14
14
strategy :
15
15
fail-fast : false
52
52
os : ubuntu-latest
53
53
- target : x86_64-apple-darwin
54
54
os : macos-13
55
+ - target : wasm32-unknown-unknown
56
+ os : ubuntu-latest
57
+ build_only : 1
55
58
- target : i686-pc-windows-msvc
56
59
os : windows-latest
57
60
- target : x86_64-pc-windows-msvc
@@ -89,30 +92,19 @@ jobs:
89
92
90
93
# Non-linux tests just use our raw script
91
94
- name : Run locally
92
- if : matrix.os != 'ubuntu-latest'
95
+ if : matrix.os != 'ubuntu-latest' || contains(matrix.target, 'wasm')
93
96
shell : bash
94
97
run : ./ci/run.sh ${{ matrix.target }}
95
98
96
99
# Otherwise we use our docker containers to run builds
97
100
- name : Run in Docker
98
- if : matrix.os == 'ubuntu-latest'
101
+ if : matrix.os == 'ubuntu-latest' && !contains(matrix.target, 'wasm')
99
102
run : |
100
103
rustup target add x86_64-unknown-linux-musl
101
104
cargo generate-lockfile && ./ci/run-docker.sh ${{ matrix.target }}
102
105
103
- wasm :
104
- name : WebAssembly
105
- runs-on : ubuntu-latest
106
- steps :
107
- - uses : actions/checkout@master
108
- - name : Install Rust
109
- run : rustup update nightly --no-self-update && rustup default nightly
110
- - run : rustup target add wasm32-unknown-unknown
111
- - uses : Swatinem/rust-cache@v2
112
- - run : cargo build --target wasm32-unknown-unknown
113
-
114
106
builtins :
115
- name : " The compiler-builtins crate works "
107
+ name : Check use with compiler-builtins
116
108
runs-on : ubuntu-latest
117
109
steps :
118
110
- uses : actions/checkout@master
@@ -164,7 +156,6 @@ jobs:
164
156
success :
165
157
needs :
166
158
- test
167
- - wasm
168
159
- builtins
169
160
- benchmarks
170
161
- msrv
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if [ "${BUILD_ONLY:-}" = "1" ]; then
55
55
$cmd
56
56
$cmd --features " unstable-intrinsics"
57
57
58
- echo " can't run tests on $target "
58
+ echo " can't run tests on $target ; skipping "
59
59
else
60
60
cmd=" cargo test --all --target $target $extra_flags "
61
61
You can’t perform that action at this time.
0 commit comments