Skip to content
Merged
Show file tree
Hide file tree
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
27 changes: 21 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-14, windows-2022]
target:
- x86_64-unknown-linux-musl
- x86_64-pc-windows-msvc
- aarch64-apple-darwin
feature-args: ['', '-Funstable-mobile-app']
include:
- os: ubuntu-24.04
- target: x86_64-unknown-linux-musl
os: ubuntu-24.04
display-os: Linux
- os: macos-14
display-os: macOS
- os: windows-2022
- target: x86_64-pc-windows-msvc
os: windows-2022
display-os: Windows
- target: aarch64-apple-darwin
os: macos-14
display-os: macOS
- feature-args: ''
feature-suffix: ''
- feature-args: '-Funstable-mobile-app'
Expand All @@ -38,11 +44,20 @@ jobs:
- name: Install Rust Toolchain
run: rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update

- name: Add Target
run: rustup target add ${{ matrix.target }}

- name: Install musl-gcc (Linux only)
if: matrix.os == 'ubuntu-24.04'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools

- name: Cache Dependencies
uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # 2.8.0

- name: Run Rustfmt
run: cargo fmt --all -- --check

- name: Run Clippy
run: cargo clippy --workspace --tests ${{ matrix.feature-args }}
run: cargo clippy --workspace --tests --target ${{ matrix.target }} ${{ matrix.feature-args }}
27 changes: 21 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-14, windows-2022]
target:
- x86_64-unknown-linux-musl
- x86_64-pc-windows-msvc
- aarch64-apple-darwin
feature-args: ['', '-Funstable-mobile-app']
include:
- os: ubuntu-24.04
- target: x86_64-unknown-linux-musl
os: ubuntu-24.04
display-os: Linux
- os: macos-14
display-os: macOS
- os: windows-2022
- target: x86_64-pc-windows-msvc
os: windows-2022
display-os: Windows
- target: aarch64-apple-darwin
os: macos-14
display-os: macOS
- feature-args: ''
feature-suffix: ''
- feature-args: '-Funstable-mobile-app'
Expand All @@ -36,8 +42,17 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2

- name: Add Target
run: rustup target add ${{ matrix.target }}

- name: Install musl-gcc (Linux only)
if: matrix.os == 'ubuntu-24.04'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools

- name: Cache Dependencies
uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # 2.8.0

- name: Run Cargo Tests
run: cargo test --workspace ${{ matrix.feature-args }}
run: cargo test --workspace --target ${{ matrix.target }} ${{ matrix.feature-args }}
Loading