Skip to content

Commit

Permalink
🚧 Fix macOS build
Browse files Browse the repository at this point in the history
Resolve issues with the macOS build configuration:

- Modify `.github/workflows/cicd.yml` to address macOS build errors.
- Ensure compatibility and stability across different macOS versions.
  • Loading branch information
hyperb1iss committed Aug 7, 2024
1 parent e4bc11a commit 7c98798
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,21 @@ jobs:
${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose
run: |
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
rustup target add aarch64-apple-darwin
cargo build --target aarch64-apple-darwin --verbose
else
cargo build --verbose
fi
- name: Run tests
run: cargo test --verbose
run: |
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
cargo test --target aarch64-apple-darwin --verbose
else
cargo test --verbose
fi
# The following jobs only run on tag pushes (i.e., releases)
create-release:
Expand Down

0 comments on commit 7c98798

Please sign in to comment.