Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Jul 17, 2020
1 parent 984cc76 commit 31afd7e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ jobs:
rustup toolchain install 1.20.0 --no-self-update
rustup toolchain install nightly --no-self-update
rustup target add wasm32-unknown-unknown
# 1.45.0 crashes with a stack overflow when compiling iced-x86-js
rustup toolchain install 1.44.1 --no-self-update
rustup target add wasm32-unknown-unknown --toolchain 1.44.1
rustup component add clippy --toolchain 1.44.1
# 1.45 workaround
rustup update --no-self-update
- name: Install Node.js
Expand Down Expand Up @@ -291,9 +298,9 @@ jobs:
echo ==== FORMAT CHECK ====
cargo fmt -- --color always --check
echo ==== CLIPPY instr_api decoder encoder block_encoder instr_create op_code_info instr_info gas intel masm nasm ====
cargo clippy --color always --target wasm32-unknown-unknown --no-default-features --features "instr_api decoder encoder block_encoder instr_create op_code_info instr_info gas intel masm nasm"
cargo +1.44.1 clippy --color always --target wasm32-unknown-unknown --no-default-features --features "instr_api decoder encoder block_encoder instr_create op_code_info instr_info gas intel masm nasm"
echo ==== CLIPPY instr_api decoder encoder block_encoder instr_create op_code_info instr_info gas intel masm nasm bigint ====
cargo clippy --color always --target wasm32-unknown-unknown --no-default-features --features "instr_api decoder encoder block_encoder instr_create op_code_info instr_info gas intel masm nasm bigint"
cargo +1.44.1 clippy --color always --target wasm32-unknown-unknown --no-default-features --features "instr_api decoder encoder block_encoder instr_create op_code_info instr_info gas intel masm nasm bigint"
allFeatures=(
"decoder"
Expand All @@ -315,7 +322,7 @@ jobs:
)
for features in "${allFeatures[@]}"; do
echo ==== $features ====
cargo check --color always --target wasm32-unknown-unknown --no-default-features --features "$features"
cargo +1.44.1 check --color always --target wasm32-unknown-unknown --no-default-features --features "$features"
done
allFeatures=(
Expand All @@ -327,14 +334,16 @@ jobs:
)
for features in "${allFeatures[@]}"; do
echo ==== $features ====
cargo check --color always --target wasm32-unknown-unknown --features "$features"
cargo +1.44.1 check --color always --target wasm32-unknown-unknown --features "$features"
done
cd ..
git clean -xdf
- name: iced-x86-js tests
shell: bash
# 1.45.0 crashes so ignore errors for now
continue-on-error: true
run: |
export PATH="$HOME/.cargo/bin:$PATH"
export RUSTFLAGS="-D warnings"
Expand Down

0 comments on commit 31afd7e

Please sign in to comment.