Add Windows/MinGW to CI for the new backend in order to test Fastcall.
This commit is contained in:
33
.github/workflows/main.yml
vendored
33
.github/workflows/main.yml
vendored
@@ -346,6 +346,39 @@ jobs:
|
||||
CARGO_VERSION: "+nightly-2020-12-26"
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
# Perform tests on the new x64 backend on Windows as well.
|
||||
test_x64_win:
|
||||
name: Test x64 new backend on Windows
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- uses: ./.github/actions/install-rust
|
||||
with:
|
||||
toolchain: nightly-2020-11-29
|
||||
- uses: ./.github/actions/define-llvm-env
|
||||
|
||||
- name: Install libclang
|
||||
# Note: libclang is pre-installed on the macOS and linux images.
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
curl https://releases.llvm.org/9.0.0/LLVM-9.0.0-win64.exe -o llvm-installer.exe
|
||||
7z x llvm-installer.exe -oC:/llvm-binary
|
||||
echo LIBCLANG_PATH=C:/llvm-binary/bin/libclang.dll >> $GITHUB_ENV
|
||||
echo C:/llvm-binary/bin >> $GITHUB_PATH
|
||||
|
||||
# Install wasm32 targets in order to build various tests throughout the
|
||||
# repo.
|
||||
- run: rustup target add wasm32-wasi
|
||||
- run: rustup target add wasm32-unknown-unknown
|
||||
|
||||
# Run the x64 CI script.
|
||||
- run: ./ci/run-experimental-x64-ci.sh
|
||||
env:
|
||||
CARGO_VERSION: "+nightly-2020-11-29"
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
# Build and test the wasi-nn module.
|
||||
test_wasi_nn:
|
||||
name: Test wasi-nn module
|
||||
|
||||
@@ -5,6 +5,16 @@
|
||||
# and become the default, we can remove this.
|
||||
CARGO_VERSION=${CARGO_VERSION:-"+nightly"}
|
||||
|
||||
# Some WASI tests seem to have an issue on Windows with symlinks if we run them
|
||||
# with this particular invocation. It's unclear why (nightly toolchain?) but
|
||||
# we're moving to the new backend by default soon enough, and all tests seem to
|
||||
# work with the main test setup, so let's just work around this by skipping
|
||||
# the tests for now.
|
||||
MINGW_EXTRA=""
|
||||
if [ `uname -o` == "Msys" ]; then
|
||||
MINGW_EXTRA="-- --skip wasi_cap_std_sync"
|
||||
fi
|
||||
|
||||
cargo $CARGO_VERSION \
|
||||
--locked \
|
||||
-Zfeatures=all -Zpackage-features \
|
||||
@@ -23,4 +33,4 @@ cargo $CARGO_VERSION \
|
||||
--exclude peepmatic-test \
|
||||
--exclude peepmatic-souper \
|
||||
--exclude lightbeam \
|
||||
$@
|
||||
$MINGW_EXTRA
|
||||
|
||||
Reference in New Issue
Block a user