Skip to content

Commit

Permalink
Check windows and macos compilation in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Sep 9, 2024
1 parent 3be1dc5 commit c18b71d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,44 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets -p nethsm_pkcs11 -- -D warnings --no-deps

check-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable-x86_64-pc-windows-msvc

- uses: Swatinem/rust-cache@v2

- name: Build project
run: cargo check

build-macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable-x86_64-apple-darwin
target: aarch64-apple-darwin

- uses: Swatinem/rust-cache@v2

- name: Build project for MacOs aaarch64
run: cargo check --target aarch64-apple-darwin

- name: Build project
run: cargo check

tests:
runs-on: ubuntu-latest
container: debian:12
Expand Down

0 comments on commit c18b71d

Please sign in to comment.