Skip to content

Commit

Permalink
fix(ci)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsuu committed Apr 18, 2024
1 parent 7bbda4a commit 4a0def7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

jobs:
build-build:
build:
name: wasm
strategy:
matrix:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4a0def7

Please sign in to comment.