summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2025-12-19 02:23:29 +0000
committerGitHub <noreply@github.com>2025-12-19 02:23:29 +0000
commit54e8fad959d6a6e53e08c62ac3a3c4d4bdc6c957 (patch)
treec339d200072a0bf64548f55fb3a988540513eaab
parent2c847b0350cfef92f347f27a0ebe9f0187e95b5e (diff)
Ignore merge commits on bootstrap testing PRs (#25884)
-rw-r--r--.github/workflows/bootstrap_testing.yml37
-rwxr-xr-xutil/env-bootstrap.sh2
2 files changed, 34 insertions, 5 deletions
diff --git a/.github/workflows/bootstrap_testing.yml b/.github/workflows/bootstrap_testing.yml
index c80d89a218..16abaee66d 100644
--- a/.github/workflows/bootstrap_testing.yml
+++ b/.github/workflows/bootstrap_testing.yml
@@ -4,20 +4,42 @@ on:
4 push: 4 push:
5 branches: [master, develop, xap] 5 branches: [master, develop, xap]
6 paths: 6 paths:
7 - "util/env-bootstrap.sh" 7 - 'util/env-bootstrap.sh'
8 - ".github/workflows/bootstrap_testing.yml" 8 - '.github/workflows/bootstrap_testing.yml'
9 pull_request: 9 pull_request:
10 paths: 10 paths:
11 - "util/env-bootstrap.sh" 11 - 'util/env-bootstrap.sh'
12 - ".github/workflows/bootstrap_testing.yml" 12 - '.github/workflows/bootstrap_testing.yml'
13 workflow_dispatch: 13 workflow_dispatch:
14 14
15permissions: 15permissions:
16 contents: read 16 contents: read
17 17
18jobs: 18jobs:
19 prep:
20 runs-on: ubuntu-latest
21
22 if: ${{ github.event_name == 'pull_request' }}
23
24 outputs:
25 any_changed: ${{ steps.file_changes.outputs.any_changed }}
26
27 steps:
28 - name: Get changed files
29 id: file_changes
30 uses: tj-actions/changed-files@v47
31 with:
32 use_rest_api: true
33 files: |
34 util/env-bootstrap.sh
35 .github/workflows/bootstrap_testing.yml
36
19 bootstrap-test-linux: 37 bootstrap-test-linux:
20 name: Bootstrap (Linux) 38 name: Bootstrap (Linux)
39
40 needs: prep
41 if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }}
42
21 runs-on: ubuntu-latest 43 runs-on: ubuntu-latest
22 44
23 strategy: 45 strategy:
@@ -163,6 +185,10 @@ jobs:
163 185
164 bootstrap-test-macos: 186 bootstrap-test-macos:
165 name: Bootstrap (macOS) 187 name: Bootstrap (macOS)
188
189 needs: prep
190 if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }}
191
166 strategy: 192 strategy:
167 fail-fast: false 193 fail-fast: false
168 matrix: 194 matrix:
@@ -208,6 +234,9 @@ jobs:
208 bootstrap-test-windows: 234 bootstrap-test-windows:
209 name: Bootstrap (Windows) 235 name: Bootstrap (Windows)
210 236
237 needs: prep
238 if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }}
239
211 strategy: 240 strategy:
212 fail-fast: false 241 fail-fast: false
213 matrix: 242 matrix:
diff --git a/util/env-bootstrap.sh b/util/env-bootstrap.sh
index 6b0497ffae..07020ea371 100755
--- a/util/env-bootstrap.sh
+++ b/util/env-bootstrap.sh
@@ -230,7 +230,7 @@ __EOT__
230 *debian* | *ubuntu*) echo "zstd build-essential clang-format diffutils wget unzip zip libhidapi-hidraw0 dos2unix git" ;; 230 *debian* | *ubuntu*) echo "zstd build-essential clang-format diffutils wget unzip zip libhidapi-hidraw0 dos2unix git" ;;
231 *fedora*) echo "zstd clang diffutils which gcc git wget unzip zip hidapi dos2unix libusb-devel libusb1-devel libusb-compat-0.1-devel libusb0-devel git epel-release" ;; 231 *fedora*) echo "zstd clang diffutils which gcc git wget unzip zip hidapi dos2unix libusb-devel libusb1-devel libusb-compat-0.1-devel libusb0-devel git epel-release" ;;
232 *suse*) echo "zstd clang diffutils wget unzip zip libhidapi-hidraw0 dos2unix git libusb-1_0-devel gzip which" ;; 232 *suse*) echo "zstd clang diffutils wget unzip zip libhidapi-hidraw0 dos2unix git libusb-1_0-devel gzip which" ;;
233 *gentoo*) echo "zstd diffutils wget unzip zip dev-libs/hidapi dos2unix dev-vcs/git dev-libs/libusb app-arch/gzip which" ;; 233 *gentoo*) echo "zstd sys-apps/diffutils wget unzip zip dev-libs/hidapi dos2unix dev-vcs/git dev-libs/libusb app-arch/gzip which" ;;
234 *) 234 *)
235 echo >&2 235 echo >&2
236 echo "Sorry, we don't recognize your distribution." >&2 236 echo "Sorry, we don't recognize your distribution." >&2