Skip to content

Commit aa54c07

Browse files
committed
ci: update build workflow to support multiple OS targets
1 parent 5a89ec0 commit aa54c07

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@ env:
1111

1212
jobs:
1313
build:
14-
15-
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
include:
17+
- target: x86_64-unknown-linux-gnu
18+
os: ubuntu-latest
19+
- target: x86_64-apple-darwin
20+
os: macos-latest
21+
- target: x86_64-pc-windows-msvc
22+
os: windows-latest
23+
runs-on: ${{ matrix.os }}
1624

1725
steps:
1826
- uses: actions/checkout@v4
1927
- name: Install dependencies
28+
if: matrix.os == 'ubuntu-latest'
2029
run: sudo apt-get update && sudo apt-get install -y libx11-dev
2130
- name: Build
2231
run: cargo build --verbose

0 commit comments

Comments
 (0)