Skip to content

Commit

Permalink
add macos CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
ognevny committed Feb 4, 2024
1 parent 6c4839f commit 431b017
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,29 @@ jobs:
run: mold -run cargo b -v --profile testing
- name: fmt and clippy check
if: ${{ matrix.toolchain == 'nightly' }}
run: cargo fmt -- --check && mold -run cargo clippy --profile testing -- -D warnings
run: cargo fmt -- --check; mold -run cargo clippy --profile testing -- -D warnings
- name: test
run: mold -run cargo t -v --profile testing

macos:
name: full check on macos (${{ matrix.toolchain }} channel)
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- name: switch to ${{ matrix.toolchain }} channel
run: |
rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
rustup component add rustfmt clippy
- name: build
run: cargo b -v --profile testing
- name: fmt and clippy check
if: ${{ matrix.toolchain == 'nightly' }}
run: cargo fmt -- --check; cargo clippy --profile testing -- -D warnings

msys2:
name: full check on windows (msys2 - ${{ matrix.sys }})
runs-on: windows-latest
Expand Down

0 comments on commit 431b017

Please sign in to comment.