Skip to content

Commit be4ea60

Browse files
authored
Update build.yml
1 parent 95aba3e commit be4ea60

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,17 @@ on:
1717

1818
jobs:
1919
archive:
20-
runs-on: ${{ matrix.os }}
20+
runs-on: ${{ matrix.host-arch == 'arm64' && 'ubuntu-24.04-arm' || matrix.host-arch == 'x64' && 'ubuntu-latest' || null }}
2121

2222
container:
2323
image: docker.io/library/debian
2424

2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
include:
29-
- host-arch: x64
30-
os: ubuntu-latest
31-
- host-arch: arm64
32-
os: ubuntu-24.04-arm
28+
host-arch:
29+
- x64
30+
- arm64
3331

3432
steps:
3533
- name: Install build tools
@@ -62,7 +60,7 @@ jobs:
6260
build:
6361
needs: [archive]
6462

65-
runs-on: ${{ matrix.os }}
63+
runs-on: ${{ matrix.host-arch == 'arm64' && 'ubuntu-24.04-arm' || matrix.host-arch == 'x64' && 'ubuntu-latest' || null }}
6664

6765
permissions:
6866
actions: write
@@ -77,17 +75,13 @@ jobs:
7775
matrix:
7876
include:
7977
- host-arch: x64
80-
target-arch: x64
81-
os: ubuntu-latest
78+
target-arch: arm
8279
- host-arch: x64
8380
target-arch: arm64
84-
os: ubuntu-latest
85-
- host-arch: x64
86-
target-arch: arm
87-
os: ubuntu-latest
8881
- host-arch: x64
8982
target-arch: riscv64
90-
os: ubuntu-latest
83+
- host-arch: x64
84+
target-arch: x64
9185

9286
steps:
9387
- name: Download Artifact

0 commit comments

Comments
 (0)