Skip to content

Commit fb54029

Browse files
committed
Simplify test targets
1 parent 55ba22d commit fb54029

File tree

1 file changed

+23
-53
lines changed

1 file changed

+23
-53
lines changed

.github/workflows/ci.yaml

+23-53
Original file line numberDiff line numberDiff line change
@@ -41,78 +41,50 @@ jobs:
4141
- name: Execute build.sh
4242
run: ./ci/verify-build.sh
4343

44-
macos:
45-
name: macOS
46-
runs-on: macos-14
44+
test_tier1:
45+
name: Test tier1 targets
4746
strategy:
48-
fail-fast: true
49-
matrix:
50-
target:
51-
- aarch64-apple-darwin
52-
env:
53-
TARGET: ${{ matrix.target }}
54-
steps:
55-
- uses: actions/checkout@v4
56-
- name: Setup Rust toolchain
57-
run: ./ci/install-rust.sh
58-
- name: Execute run.sh
59-
run: ./ci/run.sh ${{ matrix.target }}
60-
61-
windows:
62-
name: Windows
63-
runs-on: windows-2022
64-
strategy:
65-
fail-fast: true
6647
matrix:
6748
include:
49+
- target: i686-unknown-linux-gnu
50+
docker: true
51+
os: ubuntu-22.04
52+
- target: x86_64-unknown-linux-gnu
53+
docker: true
54+
os: ubuntu-22.04
55+
- target: aarch64-apple-darwin
56+
os: macos-14
6857
- target: x86_64-pc-windows-gnu
58+
os: windows-2022
6959
env:
7060
ARCH_BITS: 64
7161
ARCH: x86_64
7262
- target: x86_64-pc-windows-msvc
63+
os: windows-2022
7364
# FIXME: It currently causes segfaults.
7465
#- target: i686-pc-windows-gnu
7566
# env:
7667
# ARCH_BITS: 32
7768
# ARCH: i686
7869
- target: i686-pc-windows-msvc
70+
os: windows-2022
71+
runs-on: ${{ matrix.os }}
7972
env:
80-
OS: windows
8173
TARGET: ${{ matrix.target }}
8274
steps:
8375
- uses: actions/checkout@v4
84-
- name: Self-update rustup
85-
run: rustup self update
86-
shell: bash
8776
- name: Setup Rust toolchain
8877
run: ./ci/install-rust.sh
89-
shell: bash
90-
- name: Execute run.sh
78+
- name: Run natively
79+
if: "!matrix.docker"
9180
run: ./ci/run.sh ${{ matrix.target }}
92-
shell: bash
93-
94-
95-
docker_linux_tier1:
96-
name: Docker Linux Tier1
97-
runs-on: ubuntu-22.04
98-
strategy:
99-
fail-fast: true
100-
matrix:
101-
target:
102-
- i686-unknown-linux-gnu
103-
- x86_64-unknown-linux-gnu
104-
env:
105-
TARGET: ${{ matrix.target }}
106-
steps:
107-
- uses: actions/checkout@v4
108-
- name: Setup Rust toolchain
109-
run: ./ci/install-rust.sh
110-
- name: Execute run-docker.sh
81+
- name: Run in Docker
82+
if: "matrix.docker"
11183
run: ./ci/run-docker.sh ${{ matrix.target }}
11284

113-
docker_linux_tier2:
114-
name: Docker Linux Tier2
115-
needs: [docker_linux_tier1, style_check]
85+
test_tier2:
86+
name: Test tier2 targets
87+
needs: [test_tier1, style_check]
11688
runs-on: ubuntu-22.04
11789
strategy:
11890
fail-fast: true
@@ -199,10 +171,8 @@ jobs:
199171
name: success
200172
runs-on: ubuntu-22.04
201173
needs:
202-
- docker_linux_tier1
203-
- docker_linux_tier2
204-
- macos
205-
- windows
174+
- test_tier1
175+
- test_tier2
206176
- solaris
207177
- style_check
208178
- verify_build

0 commit comments

Comments
 (0)