Skip to content

Commit 022f77c

Browse files
committed
Workflow
1 parent ab739d1 commit 022f77c

1 file changed

Lines changed: 40 additions & 31 deletions

File tree

.github/workflows/test.yml

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,48 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
image:
21-
# Refers to https://github.com/actions/runner-images
22-
- ubuntu-24.04 # x86
23-
- macos-13 # x86
24-
- macos-15 # arm
25-
- windows-2022 # x86
26-
# https://github.com/actions/partner-runner-images
27-
- ubuntu-24.04-arm
20+
# Refers to
21+
# - https://github.com/actions/runner-images
22+
# - https://github.com/actions/partner-runner-images
23+
target:
24+
- x86_64-unknown-linux-gnu
25+
- i686-unknown-linux-gnu
26+
- x86_64-apple-darwin
27+
- aarch64-apple-darwin
28+
- x86_64-pc-windows-msvc
29+
- x86_64-pc-windows-gnu
30+
- i686-pc-windows-msvc
31+
- aarch64-unknown-linux-gnu
32+
- arm-unknown-linux-gnueabihf
2833
include:
29-
- image: ubuntu-24.04
34+
# ubuntu-24.04 (x86_64)
35+
- target: x86_64-unknown-linux-gnu
36+
image: ubuntu-24.04
37+
- target: i686-unknown-linux-gnu
38+
image: ubuntu-24.04
3039
setup: sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install libssl-dev:i386
31-
targets:
32-
- x86_64-unknown-linux-gnu # default
33-
- i686-unknown-linux-gnu
34-
- image: macos-13
35-
targets:
36-
- x86_64-apple-darwin # default
37-
- image: macos-15
38-
targets:
39-
- aarch64-apple-darwin # default
40-
- image: windows-2022
41-
targets:
42-
- x86_64-pc-windows-msvc # default
43-
- x86_64-pc-windows-gnu # default
44-
- i686-pc-windows-msvc
45-
- image: ubuntu-24.04-arm
40+
# macos-13 (x86_64)
41+
- target: x86_64-apple-darwin
42+
image: macos-13
43+
# macos-15 (aarch64)
44+
- target: aarch64-apple-darwin
45+
image: macos-15
46+
# windows-2022 (x86_64)
47+
- target: x86_64-pc-windows-msvc
48+
image: windows-2022
49+
- target: x86_64-pc-windows-gnu
50+
image: windows-2022
51+
- target: i686-pc-windows-msvc
52+
image: windows-2022
53+
# ubuntu-24.04-arm (aarch64)
54+
- target: aarch64-unknown-linux-gnu
55+
image: ubuntu-24.04-arm
56+
- target: arm-unknown-linux-gnueabihf
57+
image: ubuntu-24.04-arm
4658
setup: sudo dpkg --add-architecture armhf && sudo apt update && sudo apt install libssl-dev:armhf
47-
targets:
48-
- aarch64-unknown-linux-gnu # default
49-
- arm-unknown-linux-gnueabihf
50-
- armv7-unknown-linux-gnueabihf
5159

5260
runs-on: ${{ matrix.image }}
61+
name: Test (${{ matrix.target }}/${{ matrix.image }})
5362
steps:
5463

5564
- uses: actions/checkout@v4
@@ -59,10 +68,10 @@ jobs:
5968
run: ${{ matrix.setup }}
6069

6170
- name: Rustup update
62-
run: rustup target add ${{ join(matrix.targets, ' ') }}
71+
run: rustup target add ${{ matrix.target }}
6372

6473
- name: Build
65-
run: cargo build --target ${{ join(matrix.targets, ' --target ') }} --workspace --exclude portablemc-py
74+
run: cargo build --target ${{ matrix.target }} --workspace --exclude portablemc-py
6675

6776
- name: Test
68-
run: cargo test --target ${{ join(matrix.targets, ' --target ') }} --workspace --exclude portablemc-py
77+
run: cargo test --target ${{ matrix.target }} --workspace --exclude portablemc-py

0 commit comments

Comments
 (0)