Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows compilation, and add windows + macos checks in CI #219

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary

[patch.crates-io]
ureq = { git = "https://github.com/Nitrokey/ureq.git", rev = "aa15c79752d6834f4fc10f8cd32a55cfb83109d9" }
ureq = { git = "https://github.com/Nitrokey/ureq.git", rev = "dc716a0eb412db14ca75694ab7b99fb6f5d179f0" }
Loading