Skip to content
Merged
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
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,29 @@ jobs:
runs-on: macos-latest
needs: changes
if: needs.changes.outputs.rust == 'true'
strategy:
fail-fast: false
matrix:
settings:
- target: aarch64-apple-darwin
runner: macos-latest
- target: x86_64-pc-windows-msvc
runner: windows-latest
permissions:
contents: read
env:
target: aarch64-apple-darwin
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Rust setup
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ env.target }}
targets: ${{ matrix.settings.target }}
components: clippy

- uses: ./.github/actions/setup-rust-cache
with:
target: ${{ env.target }}
target: ${{ matrix.settings.target }}

- name: Create .env file in root
run: |
Expand Down Expand Up @@ -157,7 +163,7 @@ jobs:
build-desktop:
name: Build Desktop
needs: changes
if: needs.changes.outputs.rust == 'true' || needs.changes.outputs.desktop == 'true'
if: needs.changes.outputs.desktop == 'true'
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -270,3 +276,9 @@ jobs:

- name: Build release
run: cargo check --all --release

- name: Run Clippy
if: ${{ matrix.settings.target == 'aarch64-apple-darwin' || matrix.settings.target == 'x86_64-pc-windows-msvc' }}
uses: actions-rs-plus/clippy-check@v2
with:
args: --workspace --all-features --locked
Loading