Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

CI: the other workflows on the newest actions, and pr-scope diffs from the merge base

v0lumehif8f8d42ff40e
diff --git a/.github/workflows/build-mac-app.yml b/.github/workflows/build-mac-app.yml
index d232e43c..67c81e79 100644
--- a/.github/workflows/build-mac-app.yml
+++ b/.github/workflows/build-mac-app.yml
@@ -24,7 +24,7 @@ jobs:
build:
runs-on: macos-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Version from the tag
id: ver
@@ -108,7 +108,7 @@ jobs:
done
ls -la *.zip
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: NX2Apple-macOS-arm64
path: frontend/NX2Apple-macOS-arm64.zip
diff --git a/.github/workflows/build-qt.yml b/.github/workflows/build-qt.yml
index 9e25f816..934bb2cb 100644
--- a/.github/workflows/build-qt.yml
+++ b/.github/workflows/build-qt.yml
@@ -20,9 +20,9 @@ jobs:
build:
runs-on: windows-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- - uses: actions/setup-python@v5
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'
@@ -125,7 +125,7 @@ jobs:
cd frontend-qt/dist
powershell -Command "Compress-Archive -Path 'NS Port Builder' -DestinationPath '../NS-Port-Builder-qt-windows-x64.zip'"
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: NS-Port-Builder-qt-windows-x64
path: frontend-qt/NS-Port-Builder-qt-windows-x64.zip
diff --git a/.github/workflows/daily-health.yml b/.github/workflows/daily-health.yml
index 8da84c55..875eaaab 100644
--- a/.github/workflows/daily-health.yml
+++ b/.github/workflows/daily-health.yml
@@ -21,7 +21,7 @@ jobs:
check:
runs-on: macos-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # the patcher check compares against upstream/main
diff --git a/.github/workflows/pr-scope.yml b/.github/workflows/pr-scope.yml
index e31fa238..b12b8a2f 100644
--- a/.github/workflows/pr-scope.yml
+++ b/.github/workflows/pr-scope.yml
@@ -22,7 +22,9 @@ jobs:
check:
runs-on: macos-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ fetch-depth: 0 # the merge base of the PR and its base, for the three-dot diff below
- name: Files the sync protects or never overwrites
id: known
@@ -47,7 +49,9 @@ jobs:
BASE="${{ github.event.pull_request.base.sha }}"
HEAD="${{ github.event.pull_request.head.sha }}"
git fetch --no-tags origin "$BASE" "$HEAD" 2>/dev/null || true
- CHANGED=$(git diff --name-only --diff-filter=d "$BASE" "$HEAD" | sort -u)
+ # Three dots: the PR's own changes since it left the base (the checkout keeps the history for the merge base). Two dots
+ # compared the base's tip with the PR's head, so every commit main gained after the PR branched counted as the PR's
+ CHANGED=$(git diff --name-only --diff-filter=d "$BASE"..."$HEAD" | sort -u)
at_risk=""
for f in $CHANGED; do
case "$f" in
diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml
index 1997309d..e2070c97 100644
--- a/.github/workflows/sync-upstream.yml
+++ b/.github/workflows/sync-upstream.yml
@@ -18,7 +18,7 @@ jobs:
sync:
runs-on: macos-latest # the host build needs clang + macOS headers
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Fetch upstream
run: |