Update build.yml

This commit is contained in:
0xd4d 2020-08-03 10:26:50 +02:00
parent 81cd78457b
commit b52761f7b5
1 changed files with 7 additions and 2 deletions

View File

@ -174,6 +174,7 @@ jobs:
rustup toolchain install 1.44.1 --no-self-update rustup toolchain install 1.44.1 --no-self-update
rustup target add wasm32-unknown-unknown --toolchain 1.44.1 rustup target add wasm32-unknown-unknown --toolchain 1.44.1
rustup component add clippy --toolchain 1.44.1 rustup component add clippy --toolchain 1.44.1
rustup component add rustfmt --toolchain 1.44.1
# 1.45 workaround # 1.45 workaround
rustup update --no-self-update rustup update --no-self-update
@ -206,9 +207,9 @@ jobs:
echo ==== ${bitness}-bit: Generating valid/invalid files ==== echo ==== ${bitness}-bit: Generating valid/invalid files ====
dotnet run -c:Release -p src/csharp/Intel/IcedFuzzer/IcedFuzzer/IcedFuzzer.csproj -- -$bitness -oil $invalid_file -ovlc $valid_file dotnet run -c:Release -p src/csharp/Intel/IcedFuzzer/IcedFuzzer/IcedFuzzer.csproj -- -$bitness -oil $invalid_file -ovlc $valid_file
echo ==== ${bitness}-bit: Testing valid instructions ==== echo ==== ${bitness}-bit: Testing valid instructions ====
cargo run --release --manifest-path src/rust/Cargo.toml -p iced-x86-fzgt -- -b $bitness -f $valid_file cargo run --color always --release --manifest-path src/rust/Cargo.toml -p iced-x86-fzgt -- -b $bitness -f $valid_file
echo ==== ${bitness}-bit: Testing invalid instructions ==== echo ==== ${bitness}-bit: Testing invalid instructions ====
cargo run --release --manifest-path src/rust/Cargo.toml -p iced-x86-fzgt -- -b $bitness -f $invalid_file --invalid cargo run --color always --release --manifest-path src/rust/Cargo.toml -p iced-x86-fzgt -- -b $bitness -f $invalid_file --invalid
done done
rm $valid_file rm $valid_file
rm $invalid_file rm $invalid_file
@ -362,6 +363,8 @@ jobs:
git clean -xdf git clean -xdf
- name: iced-x86-js tests - name: iced-x86-js tests
# Disable this for now: https://github.com/rustwasm/wasm-pack/issues/886
continue-on-error: true
shell: bash shell: bash
run: | run: |
export PATH="$HOME/.cargo/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH"
@ -415,6 +418,7 @@ jobs:
export PATH="$HOME/.cargo/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH"
export RUSTFLAGS="-D warnings" export RUSTFLAGS="-D warnings"
cd src/rust/iced-x86 cd src/rust/iced-x86
sed -i 's/"iced-x86-fzgt",/#"iced-x86-fzgt",/' ../Cargo.toml
echo ==== UPDATE Cargo.lock ==== echo ==== UPDATE Cargo.lock ====
cargo +1.20.0 generate-lockfile cargo +1.20.0 generate-lockfile
cargo +1.20.0 update --package lazy_static --precise 1.1.1 cargo +1.20.0 update --package lazy_static --precise 1.1.1
@ -422,3 +426,4 @@ jobs:
cargo +1.20.0 build --color always --features "db" --release cargo +1.20.0 build --color always --features "db" --release
echo ==== TEST RELEASE ==== echo ==== TEST RELEASE ====
cargo +1.20.0 test --color always --features "db" --release -- --skip "lib.rs" cargo +1.20.0 test --color always --features "db" --release -- --skip "lib.rs"
git checkout ../Cargo.toml