From 4a0def7f67d117876f6f924f5ab7a6e871e8e97f Mon Sep 17 00:00:00 2001 From: RSUU Date: Thu, 18 Apr 2024 19:50:39 +0800 Subject: [PATCH] fix(ci) --- .github/workflows/test.yml | 20 ++++++++++++++------ .github/workflows/wasm.yml | 7 ++++--- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index efe80b2..23aad55 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,28 +7,36 @@ on: pull_request: jobs: - test: + build: name: test strategy: matrix: - build: [linux, linux-arm, macos, win-msvc] + build: [linux, linux-arm, macos, win-msvc, win-gnu, win32-msvc] include: - - build: linux-x86_64 + - build: linux os: ubuntu-latest rust: nightly target: x86_64-unknown-linux-gnu - - build: linux-aarch64 + - build: linux-arm os: ubuntu-latest rust: nightly - target: aarch64-unknown-linux-gnu + target: arm-unknown-linux-gnueabihf - build: macos - os: macos-latest + os: macos-12 rust: nightly target: x86_64-apple-darwin - build: win-msvc os: windows-latest rust: nightly target: x86_64-pc-windows-msvc + - build: win-gnu + os: windows-latest + rust: nightly-x86_64-gnu + target: x86_64-pc-windows-gnu + - build: win32-msvc + os: windows-latest + rust: nightly + target: i686-pc-windows-msvc runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index b1056ec..b907e92 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -7,7 +7,7 @@ on: pull_request: jobs: - build-build: + build: name: wasm strategy: matrix: @@ -19,7 +19,7 @@ jobs: target: x86_64-unknown-linux-gnu runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.os }}-test @@ -34,8 +34,9 @@ jobs: export RUSTFLAGS="-Awarnings" curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh rustup target add wasm32-unknown-unknown - #cargo install wasm-pack export PATH="$PATH:/home/runner/.cargo/bin/" + cargo install wasm-pack + bash build_web.zsh - name: Deploy uses: peaceiris/actions-gh-pages@v3