Skip to content

Commit 77a7391

Browse files
Chore: Decouple optimized build and clippy.
1 parent 29c134d commit 77a7391

3 files changed

Lines changed: 13 additions & 21 deletions

File tree

.github/workflows/_check.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@ jobs:
3434
run: cargo clippy --all-targets -- -D warnings
3535
working-directory: compiler
3636

37-
- uses: dtolnay/rust-toolchain@nightly
38-
with:
39-
components: clippy, rust-src
40-
41-
- name: Install wasm target (nightly)
42-
run: rustup target add wasm32-unknown-unknown --toolchain nightly
37+
# Lint for wasm target.
38+
- name: Install wasm target
39+
run: rustup target add wasm32-unknown-unknown
4340
working-directory: compiler
4441

4542
- name: Clippy (wasm)
46-
run: cargo +nightly clippy --lib --target wasm32-unknown-unknown --features wasm -- -D warnings
43+
run: cargo clippy --lib --target wasm32-unknown-unknown --features wasm -- -D warnings
4744
working-directory: compiler

.github/workflows/_wasm.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ jobs:
3232
| tar -xz --strip-components=2 -C /usr/local/bin binaryen-version_121/bin/wasm-opt
3333
wasm-opt --version
3434
35-
- name: Run Clippy
36-
run: cargo +nightly clippy --lib --target wasm32-unknown-unknown --features wasm -- -D warnings
35+
- name: Build
36+
run: |
37+
RUSTFLAGS="-Z location-detail=none -Z fmt-debug=none -Z unstable-options -C panic=immediate-abort" \
38+
cargo +nightly build \
39+
--target wasm32-unknown-unknown \
40+
--features wasm \
41+
--lib \
42+
--release \
43+
-Z build-std=core,alloc,panic_abort
3744
working-directory: compiler
3845

3946
- name: Size (unoptimized)

compiler/.cargo/config.toml

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

0 commit comments

Comments
 (0)