Skip to content

Commit

Permalink
A few more CI tests
Browse files Browse the repository at this point in the history
I recently got a runtime error in martin in macos-latest runner https://github.com/maplibre/martin/actions/runs/9232099619/job/25402973412 -- trying to see if its from here

```
dyld[12895]: Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib
  Referenced from: <6F45087B-9511-3676-8E75-D8901573A921> /Users/runner/work/martin/martin/target/martin
  Reason: tried: '/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/usr/local/lib/libfreetype.6.dylib' (no such file), '/usr/lib/libfreetype.6.dylib' (no such file, not in dyld cache)
```
  • Loading branch information
nyurik committed May 25, 2024
1 parent 011f994 commit aeffc00
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2

Expand All @@ -32,12 +32,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'

- name: Report Rust version
run: |
rustc --version
cargo --version
run: rustc --version && cargo --version

- name: Run fmt
run: cargo fmt --all -- --check
Expand All @@ -55,3 +56,30 @@ jobs:
run: |
cargo test --workspace --release --doc --locked
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --release --no-deps
multi-os-test:
name: Test on multiple OS
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
# This is not an exhaustive list of runners, just the more recent ones
- ubuntu-latest
- ubuntu-24.04
- ubuntu-22.04
- macos-latest
- macos-13
- macos-14 # M1 CPU
- windows-latest
- windows-2022

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Report Rust version
run: rustc --version && cargo --version

- name: Run tests
run: cargo test --workspace --all-features --locked

0 comments on commit aeffc00

Please sign in to comment.