Skip to content

Commit

Permalink
Fix CI (#12)
Browse files Browse the repository at this point in the history
* Update build-and-test.yaml
  • Loading branch information
VirxEC authored May 15, 2024
1 parent da33ac9 commit c514e40
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-24.04, macos-latest]
features: [ all, no, default ]
include:
- os: windows-latest
- os: macos-latest
- os: ubuntu-latest
- os: ubuntu-24.04
- features: all
features_arg: --all-features
- features: no
features_arg: --no-default-features
- features: default
features_arg:

name: ${{ matrix.os }}, ${{ matrix.toolchain }} toolchain, ${{ matrix.features }} features
name: ${{ matrix.os }}, nightly, ${{ matrix.features }} features
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
Expand All @@ -47,7 +47,15 @@ jobs:
done
- name: Get cached dependencies
uses: Swatinem/rust-cache@v2
- name: Build project (Windows)
if: matrix.os == 'windows-latest'
shell: cmd
run: |
set PATH=%PATH:C:\Program Files\LLVM\bin;=%
cargo build ${{ matrix.features_arg }}
- name: Build project
if: matrix.os != 'windows-latest'
run: cargo build ${{ matrix.features_arg }}
- name: Run tests
if: matrix.os != 'windows-latest'
run: cargo test ${{ matrix.features_arg }}

0 comments on commit c514e40

Please sign in to comment.