Skip to content

Commit 370edd4

Browse files
authored
Merge pull request #2631 from userdocs/linux.yml-build-with-python-update
linux.yml - build-with-python - add matrix to job
2 parents 50a5fb5 + c1b73ea commit 370edd4

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/linux.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,27 @@ jobs:
167167
working-directory: build-clang/Release
168168

169169
build-with-python:
170-
runs-on: [ubuntu-latest]
171-
container:
172-
image: ${{ matrix.image }}
170+
permissions: # https://docs.zizmor.sh/audits/#excessive-permissions
171+
contents: read
173172
strategy:
174173
matrix:
175-
image: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04"]
174+
host-os: ["ubuntu-latest", "ubuntu-24.04-arm"]
175+
image: ["ubuntu:22.04", "ubuntu:24.04"]
176+
fail-fast: false
177+
defaults:
178+
run:
179+
shell: bash
180+
runs-on: ${{ matrix.host-os }}
181+
container: ${{ matrix.image }}
176182
steps:
177183
- uses: actions/checkout@v4
184+
with:
185+
persist-credentials: false #https://docs.zizmor.sh/audits/#artipacked
178186
- name: Install dependencies
179187
run: |
180188
apt update
181189
apt install -y g++ python3
182-
- name: ${{ matrix.image }}
190+
- name: ${{ matrix.host-os }} ${{ matrix.image }}
183191
run: |
184192
# Do not set --warnings-as-errors here as that triggers an irrelevant
185193
# compiler warnings in <stdio.h> with ubuntu:24.04. See issue #2615

0 commit comments

Comments
 (0)