Skip to content

Commit 3760737

Browse files
committed
.github: Separate macOS CI
1 parent 0fe8569 commit 3760737

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ jobs:
1515
- run: cargo clippy --features '${{ matrix.glium }}' --no-deps -- -D warnings
1616
- run: cargo fmt -- --check
1717

18-
sample:
19-
name: Test sample app
18+
sample-ubuntu:
19+
name: Test sample app on Ubuntu
2020
strategy:
2121
matrix:
22-
os: [ubuntu-24.04, macos-latest]
2322
project: [sampleapp, sampleapp-vulkano]
24-
runs-on: ${{ matrix.os }}
23+
runs-on: ubuntu-24.04
2524
steps:
26-
- if: matrix.os == 'ubuntu-24.04'
27-
uses: awalsh128/cache-apt-pkgs-action@v1
25+
- uses: awalsh128/cache-apt-pkgs-action@v1
2826
with:
2927
packages: libfontconfig-dev
3028
version: 0
@@ -36,7 +34,23 @@ jobs:
3634
- run: cargo clippy -p '${{ matrix.project }}' --no-deps -- -D warnings
3735
- run: cargo fmt -p '${{ matrix.project }}' -- --check
3836

37+
sample-macos:
38+
name: Test sample app on macOS
39+
strategy:
40+
matrix:
41+
project: [sampleapp, sampleapp-vulkano]
42+
runs-on: macos-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: dtolnay/rust-toolchain@stable
46+
- uses: Swatinem/rust-cache@v2
47+
- run: cargo build -p '${{ matrix.project }}'
48+
- run: cargo test -p '${{ matrix.project }}'
49+
- run: cargo clippy -p '${{ matrix.project }}' --no-deps -- -D warnings
50+
- run: cargo fmt -p '${{ matrix.project }}' -- --check
51+
3952
sample-windows:
53+
# TODO: sampleapp-vulkano for Windows
4054
name: Test sample app on Windows
4155
runs-on: windows-latest
4256
steps:

0 commit comments

Comments
 (0)