Default to using bash on Github Actions (#1591)
This updates our github actions configuration with a new feature released which allows configuring the default shell for the entire worflow. Here we set that to `bash` since we frequently do that anyway and it helps keep syntax consistent throughout the configuration file.
This commit is contained in:
38
.github/workflows/main.yml
vendored
38
.github/workflows/main.yml
vendored
@@ -5,6 +5,9 @@ on:
|
|||||||
tags-ignore: [dev]
|
tags-ignore: [dev]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Check Code style quickly by running `rustfmt` over all code
|
# Check Code style quickly by running `rustfmt` over all code
|
||||||
@@ -131,36 +134,31 @@ jobs:
|
|||||||
# our fuzzers over the sampled inputs still works OK.
|
# our fuzzers over the sampled inputs still works OK.
|
||||||
- run: |
|
- run: |
|
||||||
find fuzz/corpus/compile -type f \
|
find fuzz/corpus/compile -type f \
|
||||||
| shuf \
|
| shuf -n 3000 \
|
||||||
| head -n 3000 \
|
|
||||||
| xargs cargo fuzz run compile --release --debug-assertions --features binaryen
|
| xargs cargo fuzz run compile --release --debug-assertions --features binaryen
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
- run: |
|
- run: |
|
||||||
find fuzz/corpus/instantiate -type f \
|
find fuzz/corpus/instantiate -type f \
|
||||||
| shuf \
|
| shuf -n 2000 \
|
||||||
| head -n 2000 \
|
|
||||||
| xargs cargo fuzz run instantiate --release --debug-assertions --features binaryen
|
| xargs cargo fuzz run instantiate --release --debug-assertions --features binaryen
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
- run: |
|
- run: |
|
||||||
find fuzz/corpus/instantiate_translated -type f \
|
find fuzz/corpus/instantiate_translated -type f \
|
||||||
| shuf \
|
| shuf -n 1000 \
|
||||||
| head -n 1000 \
|
|
||||||
| xargs cargo fuzz run instantiate_translated --release --debug-assertions --features binaryen
|
| xargs cargo fuzz run instantiate_translated --release --debug-assertions --features binaryen
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
- run: |
|
- run: |
|
||||||
find fuzz/corpus/api_calls -type f \
|
find fuzz/corpus/api_calls -type f \
|
||||||
| shuf \
|
| shuf -n 100 \
|
||||||
| head -n 100 \
|
|
||||||
| xargs cargo fuzz run api_calls --release --debug-assertions --features binaryen
|
| xargs cargo fuzz run api_calls --release --debug-assertions --features binaryen
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
- run: |
|
- run: |
|
||||||
find fuzz/corpus/differential -type f \
|
find fuzz/corpus/differential -type f \
|
||||||
| shuf \
|
| shuf -n 100 \
|
||||||
| head -n 100 \
|
|
||||||
| xargs cargo fuzz run differential --release --debug-assertions --features binaryen
|
| xargs cargo fuzz run differential --release --debug-assertions --features binaryen
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
@@ -255,15 +253,15 @@ jobs:
|
|||||||
# Note: libclang is pre-installed on the macOS and linux images.
|
# Note: libclang is pre-installed on the macOS and linux images.
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest https://releases.llvm.org/9.0.0/LLVM-9.0.0-win64.exe -OutFile llvm-installer.exe
|
curl https://releases.llvm.org/9.0.0/LLVM-9.0.0-win64.exe -OutFile llvm-installer.exe
|
||||||
7z x llvm-installer.exe -oC:\llvm-binary
|
7z x llvm-installer.exe -o./llvm-binary
|
||||||
Write-Host ::set-env name=LIBCLANG_PATH::C:\llvm-binary\bin\libclang.dll
|
echo ::set-env name=LIBCLANG_PATH::`pwd`/bin/libclang.dll
|
||||||
Write-Host ::add-path::C:\llvm-binary\bin
|
echo ::add-path::`pwd`/llvm-binary/bin
|
||||||
|
|
||||||
- name: Query Clang Version
|
- name: Query Clang Version
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
Get-Command clang.exe
|
where clang.exe
|
||||||
clang.exe --version
|
clang.exe --version
|
||||||
|
|
||||||
# Install wasm32 targets in order to build various tests throughout the
|
# Install wasm32 targets in order to build various tests throughout the
|
||||||
@@ -355,7 +353,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo ::set-env name=CARGO_BUILD_TARGET::${{ matrix.target }}
|
echo ::set-env name=CARGO_BUILD_TARGET::${{ matrix.target }}
|
||||||
rustup target add ${{ matrix.target }}
|
rustup target add ${{ matrix.target }}
|
||||||
shell: bash
|
|
||||||
if: matrix.target != ''
|
if: matrix.target != ''
|
||||||
|
|
||||||
- name: Install cross-compilation tools
|
- name: Install cross-compilation tools
|
||||||
@@ -386,11 +383,9 @@ jobs:
|
|||||||
|
|
||||||
# Build `wasmtime` and executables
|
# Build `wasmtime` and executables
|
||||||
- run: $CENTOS cargo build --release --bin wasmtime
|
- run: $CENTOS cargo build --release --bin wasmtime
|
||||||
shell: bash
|
|
||||||
|
|
||||||
# Build `libwasmtime.so`
|
# Build `libwasmtime.so`
|
||||||
- run: $CENTOS cargo build --release --manifest-path crates/c-api/Cargo.toml
|
- run: $CENTOS cargo build --release --manifest-path crates/c-api/Cargo.toml
|
||||||
shell: bash
|
|
||||||
|
|
||||||
# Test what we just built.
|
# Test what we just built.
|
||||||
#
|
#
|
||||||
@@ -410,7 +405,6 @@ jobs:
|
|||||||
--exclude peepmatic-runtime \
|
--exclude peepmatic-runtime \
|
||||||
--exclude peepmatic-test \
|
--exclude peepmatic-test \
|
||||||
--exclude wasmtime-fuzz
|
--exclude wasmtime-fuzz
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
@@ -424,7 +418,6 @@ jobs:
|
|||||||
# something that we'll upload from this action.
|
# something that we'll upload from this action.
|
||||||
|
|
||||||
- run: mkdir dist
|
- run: mkdir dist
|
||||||
shell: bash
|
|
||||||
|
|
||||||
# Move binaries to dist folder
|
# Move binaries to dist folder
|
||||||
- run: cp target/release/wasmtime dist
|
- run: cp target/release/wasmtime dist
|
||||||
@@ -432,10 +425,8 @@ jobs:
|
|||||||
- run: cp target/${{ matrix.target }}/release/wasmtime dist
|
- run: cp target/${{ matrix.target }}/release/wasmtime dist
|
||||||
if: matrix.os != 'windows-latest' && matrix.target != ''
|
if: matrix.os != 'windows-latest' && matrix.target != ''
|
||||||
- run: cp target/release/wasmtime.exe dist
|
- run: cp target/release/wasmtime.exe dist
|
||||||
shell: bash
|
|
||||||
if: matrix.build == 'x86_64-windows'
|
if: matrix.build == 'x86_64-windows'
|
||||||
- run: cp target/x86_64-pc-windows-gnu/release/wasmtime.exe dist
|
- run: cp target/x86_64-pc-windows-gnu/release/wasmtime.exe dist
|
||||||
shell: bash
|
|
||||||
if: matrix.build == 'x86_64-mingw'
|
if: matrix.build == 'x86_64-mingw'
|
||||||
|
|
||||||
# Move libwasmtime dylib to dist folder
|
# Move libwasmtime dylib to dist folder
|
||||||
@@ -446,10 +437,8 @@ jobs:
|
|||||||
- run: cp target/release/libwasmtime.{dylib,a} dist
|
- run: cp target/release/libwasmtime.{dylib,a} dist
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
- run: cp target/release/wasmtime.{dll,lib,dll.lib} dist
|
- run: cp target/release/wasmtime.{dll,lib,dll.lib} dist
|
||||||
shell: bash
|
|
||||||
if: matrix.build == 'x86_64-windows'
|
if: matrix.build == 'x86_64-windows'
|
||||||
- run: cp target/x86_64-pc-windows-gnu/release/{wasmtime.dll,libwasmtime.a} dist
|
- run: cp target/x86_64-pc-windows-gnu/release/{wasmtime.dll,libwasmtime.a} dist
|
||||||
shell: bash
|
|
||||||
if: matrix.build == 'x86_64-mingw'
|
if: matrix.build == 'x86_64-mingw'
|
||||||
|
|
||||||
# Make a Windows MSI installer if we're on Windows
|
# Make a Windows MSI installer if we're on Windows
|
||||||
@@ -458,7 +447,6 @@ jobs:
|
|||||||
"$WIX/bin/candle" -arch x64 -out target/wasmtime.wixobj ci/wasmtime.wxs
|
"$WIX/bin/candle" -arch x64 -out target/wasmtime.wixobj ci/wasmtime.wxs
|
||||||
"$WIX/bin/light" -out dist/installer.msi target/wasmtime.wixobj -ext WixUtilExtension
|
"$WIX/bin/light" -out dist/installer.msi target/wasmtime.wixobj -ext WixUtilExtension
|
||||||
rm dist/installer.wixpdb
|
rm dist/installer.wixpdb
|
||||||
shell: bash
|
|
||||||
if: matrix.build == 'x86_64-windows'
|
if: matrix.build == 'x86_64-windows'
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user