From c18b71d16bbc2a5be387f6185aeaaec1035fbf44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 9 Sep 2024 11:09:58 +0200 Subject: [PATCH 1/2] Check windows and macos compilation in CI --- .github/workflows/rust-tests.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index 062a1d05..46de9057 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -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 From f7ab69fbc1a7eeba58723dbd7dcff3037505bc65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 9 Sep 2024 11:12:17 +0200 Subject: [PATCH 2/2] Update Ureq with windows fix --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 22be0497..a8262e90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" }