Skip to content

Commit

Permalink
attempt to switch from actions-rs and also add wasm32 check
Browse files Browse the repository at this point in the history
  • Loading branch information
droundy committed Nov 3, 2024
1 parent f72ab7e commit 9bab658
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose --no-default-features
- name: Run tests
Expand All @@ -40,29 +40,36 @@ jobs:
- stable
- 1.61.0
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
- run: cargo check
wasm-check:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- 1.61.0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
command: check

toolchain: ${{ matrix.rust }}
targets: wasm32-unknown-unknown
- run: cargo check --target wasm32-unknown-unknown
miri-test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: miri
- name: miri test check_sets
run: cargo miri test check_sets
Expand All @@ -80,7 +87,7 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -94,15 +101,11 @@ jobs:
- stable
- 1.61.0
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- run: cargo check --all-features

macos-check:
runs-on: macos-latest
Expand All @@ -112,12 +115,8 @@ jobs:
- stable
- 1.61.0
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- run: cargo check --all-features

0 comments on commit 9bab658

Please sign in to comment.