Skip to content

Commit c3d310c

Browse files
ZykinoZykino
authored andcommitted
CI only on wasm (our target)
This is a bit brute force. I suspect test will not work
1 parent 5aeb4c9 commit c3d310c

6 files changed

Lines changed: 26 additions & 31 deletions

File tree

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build]
2-
target = "wasm32-wasi"
2+
target = "wasm32-wasip1"

.github/workflows/check.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- name: Install stable
3232
uses: dtolnay/rust-toolchain@stable
3333
with:
34+
target: wasm32-wasip1
3435
components: rustfmt
3536
- name: cargo fmt --check
3637
run: cargo fmt --check
@@ -52,6 +53,7 @@ jobs:
5253
- name: Install ${{ matrix.toolchain }}
5354
uses: dtolnay/rust-toolchain@master
5455
with:
56+
target: wasm32-wasip1
5557
toolchain: ${{ matrix.toolchain }}
5658
components: clippy
5759
- name: cargo clippy
@@ -69,6 +71,7 @@ jobs:
6971
- name: Install stable
7072
uses: dtolnay/rust-toolchain@stable
7173
with:
74+
target: wasm32-wasip1
7275
components: rustfmt
7376
- name: cargo-semver-checks
7477
uses: obi1kenobi/cargo-semver-checks-action@v2
@@ -84,6 +87,8 @@ jobs:
8487
submodules: true
8588
- name: Install nightly
8689
uses: dtolnay/rust-toolchain@nightly
90+
with:
91+
target: wasm32-wasip1
8792
- name: Install cargo-docs-rs
8893
uses: dtolnay/install@cargo-docs-rs
8994
- name: cargo docs-rs
@@ -99,6 +104,8 @@ jobs:
99104
submodules: true
100105
- name: Install stable
101106
uses: dtolnay/rust-toolchain@stable
107+
with:
108+
target: wasm32-wasip1
102109
- name: cargo install cargo-hack
103110
uses: taiki-e/install-action@cargo-hack
104111
# intentionally no target specifier; see https://github.com/jonhoo/rust-ci-conf/pull/4
@@ -121,6 +128,7 @@ jobs:
121128
- name: Install ${{ matrix.msrv }}
122129
uses: dtolnay/rust-toolchain@master
123130
with:
131+
target: wasm32-wasip1
124132
toolchain: ${{ matrix.msrv }}
125133
- name: cargo +${{ matrix.msrv }} check
126134
run: cargo check

.github/workflows/nostd.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/safety.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
submodules: true
2525
- name: Install nightly
2626
uses: dtolnay/rust-toolchain@nightly
27+
with:
28+
target: wasm32-wasip1
2729
- run: |
2830
# to get the symbolizer for debug symbol resolution
2931
sudo apt install llvm
@@ -63,6 +65,7 @@ jobs:
6365
- name: Install ${{ env.NIGHTLY }}
6466
uses: dtolnay/rust-toolchain@master
6567
with:
68+
target: wasm32-wasip1
6669
toolchain: ${{ env.NIGHTLY }}
6770
components: miri
6871
- name: cargo miri test
@@ -77,6 +80,8 @@ jobs:
7780
submodules: true
7881
- name: Install stable
7982
uses: dtolnay/rust-toolchain@stable
83+
with:
84+
target: wasm32-wasip1
8085
- name: cargo test --test loom
8186
run: cargo test --release --test loom
8287
env:

.github/workflows/scheduled.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
submodules: true
2525
- name: Install nightly
2626
uses: dtolnay/rust-toolchain@nightly
27+
with:
28+
target: wasm32-wasip1
2729
- name: cargo generate-lockfile
2830
if: hashFiles('Cargo.lock') == ''
2931
run: cargo generate-lockfile
@@ -48,6 +50,8 @@ jobs:
4850
- name: Install beta
4951
if: hashFiles('Cargo.lock') != ''
5052
uses: dtolnay/rust-toolchain@beta
53+
with:
54+
target: wasm32-wasip1
5155
- name: cargo update
5256
if: hashFiles('Cargo.lock') != ''
5357
run: cargo update

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- name: Install ${{ matrix.toolchain }}
3333
uses: dtolnay/rust-toolchain@master
3434
with:
35+
target: wasm32-wasip1
3536
toolchain: ${{ matrix.toolchain }}
3637
- name: cargo generate-lockfile
3738
# enable this ci template to run regardless of whether the lockfile is checked in or not
@@ -74,8 +75,12 @@ jobs:
7475
submodules: true
7576
- name: Install stable
7677
uses: dtolnay/rust-toolchain@stable
78+
with:
79+
target: wasm32-wasip1
7780
- name: Install nightly for -Zminimal-versions
7881
uses: dtolnay/rust-toolchain@nightly
82+
with:
83+
target: wasm32-wasip1
7984
- name: rustup default stable
8085
run: rustup default stable
8186
- name: cargo update -Zminimal-versions
@@ -102,6 +107,8 @@ jobs:
102107
submodules: true
103108
- name: Install stable
104109
uses: dtolnay/rust-toolchain@stable
110+
with:
111+
target: wasm32-wasip1
105112
- name: cargo generate-lockfile
106113
if: hashFiles('Cargo.lock') == ''
107114
run: cargo generate-lockfile
@@ -138,6 +145,7 @@ jobs:
138145
- name: Install stable
139146
uses: dtolnay/rust-toolchain@stable
140147
with:
148+
target: wasm32-wasip1
141149
components: llvm-tools-preview
142150
- name: cargo install cargo-llvm-cov
143151
uses: taiki-e/install-action@cargo-llvm-cov

0 commit comments

Comments
 (0)