diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 7f197017..3faceaf2 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -78,10 +78,17 @@ jobs: command: fmt args: --all -- --check - - name: cargo test --locked + - name: cargo test --locked (linux & windows) uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # @v1.0.1 with: command: test + if: runner.os != 'macOS' + + - name: cargo test --locked (macOS) + uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # @v1.0.1 + with: + command: test --no-default-features + if: runner.os == 'macOS' - name: cargo clippy --locked uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # @v1.0.7 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2858d44..67784633 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,7 +115,7 @@ jobs: - name: Build the executable (other than aarch64 linux) uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # @v1.0.1 - if: matrix.build.target != 'aarch64-unknown-linux-gnu' + if: matrix.build.target != 'aarch64-unknown-linux-gnu' && matrix.build.os != 'macOS' with: command: build args: --locked -Z build-std --target ${{ matrix.build.target }} --profile production --bin pulsar @@ -128,6 +128,14 @@ jobs: command: build args: --locked -Z build-std --target ${{ matrix.build.target }} --profile aarch64linux --bin pulsar + # We build macOS without `numa` feature, primarily because of https://github.com/HadrienG2/hwlocality/issues/31 + - name: Build the executable (macOS) + uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # @v1.0.1 + with: + command: build + args: --locked -Z build-std --target ${{ matrix.build.target }} --profile production --no-default-features --bin pulsar + if: runner.os == 'macOS' + - name: Sign and Notarize Application (macOS) run: | echo "Importing certificate"