Skip to content

Commit 1ff9c5b

Browse files
committed
🔧 Added more plattforms to rust action
1 parent 7da332b commit 1ff9c5b

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/rust.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,33 @@ name: Rust Tests
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
1313
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- platform: "macos-latest"
19+
args: "--target aarch64-apple-darwin"
20+
- platform: "macos-latest"
21+
args: "--target x86_64-apple-darwin"
22+
- platform: "ubuntu-22.04"
23+
args: ""
24+
- platform: "windows-latest"
25+
args: ""
1426

15-
runs-on: ubuntu-latest
27+
runs-on: ${{ matrix.platform }}
1628

1729
steps:
18-
- uses: actions/checkout@v3
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22-
run: cargo test --verbose
30+
- uses: actions/checkout@v3
31+
- name: Build
32+
run: cargo build --verbose
33+
- name: Run tests
34+
run: cargo test --verbose

0 commit comments

Comments
 (0)