Skip to content

Commit 3af58eb

Browse files
[dependencies] Update github-actions
1 parent 4ef069f commit 3af58eb

5 files changed

Lines changed: 54 additions & 54 deletions

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
version: ${{ steps.outputs.outputs.version }}
4242
steps:
4343
- name: Checkout
44-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
44+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4545
with:
4646
fetch-depth: 0
4747
- name: Setup Go
48-
uses: actions/setup-go@v5
48+
uses: actions/setup-go@v6
4949
with:
5050
go-version: ~1.25.8
5151
- name: Check input version
@@ -117,18 +117,18 @@ jobs:
117117
- { os: android, arch: "386", ndk: "i686-linux-android23" }
118118
steps:
119119
- name: Checkout
120-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
120+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
121121
with:
122122
fetch-depth: 0
123123
- name: Setup Go
124124
if: ${{ ! matrix.legacy_win7 }}
125-
uses: actions/setup-go@v5
125+
uses: actions/setup-go@v6
126126
with:
127127
go-version: ~1.25.8
128128
- name: Cache Go for Windows 7
129129
if: matrix.legacy_win7
130130
id: cache-go-for-windows7
131-
uses: actions/cache@v4
131+
uses: actions/cache@v5
132132
with:
133133
path: |
134134
~/go/go_win7
@@ -170,7 +170,7 @@ jobs:
170170
- name: Cache Chromium toolchain
171171
if: matrix.naive
172172
id: cache-chromium-toolchain
173-
uses: actions/cache@v4
173+
uses: actions/cache@v5
174174
with:
175175
path: |
176176
~/cronet-go/naiveproxy/src/third_party/llvm-build/
@@ -440,7 +440,7 @@ jobs:
440440
- name: Cleanup
441441
run: rm -f dist/sing-box dist/libcronet.so
442442
- name: Upload artifact
443-
uses: actions/upload-artifact@v4
443+
uses: actions/upload-artifact@v7
444444
with:
445445
name: binary-${{ matrix.os }}_${{ matrix.arch }}${{ matrix.goarm && format('v{0}', matrix.goarm) }}${{ matrix.go386 && format('_{0}', matrix.go386) }}${{ matrix.gomips && format('_{0}', matrix.gomips) }}${{ matrix.legacy_name && format('-legacy-{0}', matrix.legacy_name) }}${{ matrix.variant && format('-{0}', matrix.variant) }}
446446
path: "dist"
@@ -458,18 +458,18 @@ jobs:
458458
- { arch: amd64, legacy_osx: true, legacy_name: "macos-10.13" }
459459
steps:
460460
- name: Checkout
461-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
461+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
462462
with:
463463
fetch-depth: 0
464464
- name: Setup Go
465465
if: ${{ ! matrix.legacy_osx }}
466-
uses: actions/setup-go@v5
466+
uses: actions/setup-go@v6
467467
with:
468468
go-version: ^1.25.3
469469
- name: Cache Go for macOS 10.13
470470
if: matrix.legacy_osx
471471
id: cache-go-for-macos1013
472-
uses: actions/cache@v4
472+
uses: actions/cache@v5
473473
with:
474474
path: |
475475
~/go/go_osx
@@ -533,7 +533,7 @@ jobs:
533533
- name: Cleanup
534534
run: rm dist/sing-box
535535
- name: Upload artifact
536-
uses: actions/upload-artifact@v4
536+
uses: actions/upload-artifact@v7
537537
with:
538538
name: binary-darwin_${{ matrix.arch }}${{ matrix.legacy_name && format('-legacy-{0}', matrix.legacy_name) }}
539539
path: "dist"
@@ -551,11 +551,11 @@ jobs:
551551
- { arch: arm64, naive: true }
552552
steps:
553553
- name: Checkout
554-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
554+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
555555
with:
556556
fetch-depth: 0
557557
- name: Setup Go
558-
uses: actions/setup-go@v5
558+
uses: actions/setup-go@v6
559559
with:
560560
go-version: ^1.25.4
561561
- name: Set tag
@@ -622,7 +622,7 @@ jobs:
622622
if: ${{ !matrix.naive }}
623623
run: Remove-Item dist/sing-box.exe
624624
- name: Upload artifact
625-
uses: actions/upload-artifact@v4
625+
uses: actions/upload-artifact@v7
626626
with:
627627
name: binary-windows_${{ matrix.arch }}
628628
path: "dist"
@@ -634,12 +634,12 @@ jobs:
634634
- calculate_version
635635
steps:
636636
- name: Checkout
637-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
637+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
638638
with:
639639
fetch-depth: 0
640640
submodules: 'recursive'
641641
- name: Setup Go
642-
uses: actions/setup-go@v5
642+
uses: actions/setup-go@v6
643643
with:
644644
go-version: ~1.25.8
645645
- name: Setup Android NDK
@@ -674,7 +674,7 @@ jobs:
674674
cd clients/android
675675
git checkout dev
676676
- name: Gradle cache
677-
uses: actions/cache@v4
677+
uses: actions/cache@v5
678678
with:
679679
path: ~/.gradle
680680
key: gradle-${{ hashFiles('**/*.gradle') }}
@@ -712,7 +712,7 @@ jobs:
712712
EOF
713713
cat dist/SFA-version-metadata.json
714714
- name: Upload artifact
715-
uses: actions/upload-artifact@v4
715+
uses: actions/upload-artifact@v7
716716
with:
717717
name: binary-android-apks
718718
path: 'dist'
@@ -724,12 +724,12 @@ jobs:
724724
- calculate_version
725725
steps:
726726
- name: Checkout
727-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
727+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
728728
with:
729729
fetch-depth: 0
730730
submodules: 'recursive'
731731
- name: Setup Go
732-
uses: actions/setup-go@v5
732+
uses: actions/setup-go@v6
733733
with:
734734
go-version: ~1.25.8
735735
- name: Setup Android NDK
@@ -764,7 +764,7 @@ jobs:
764764
cd clients/android
765765
git checkout dev
766766
- name: Gradle cache
767-
uses: actions/cache@v4
767+
uses: actions/cache@v5
768768
with:
769769
path: ~/.gradle
770770
key: gradle-${{ hashFiles('**/*.gradle') }}
@@ -822,13 +822,13 @@ jobs:
822822
steps:
823823
- name: Checkout
824824
if: matrix.if
825-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
825+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
826826
with:
827827
fetch-depth: 0
828828
submodules: 'recursive'
829829
- name: Setup Go
830830
if: matrix.if
831-
uses: actions/setup-go@v5
831+
uses: actions/setup-go@v6
832832
with:
833833
go-version: ~1.25.8
834834
- name: Set tag
@@ -959,7 +959,7 @@ jobs:
959959
cp "clients/apple/${{ matrix.archive }}/SFM.dSYMs.zip" "dist/SFM-${VERSION}-universal.dSYMs.zip"
960960
- name: Upload image
961961
if: matrix.if && matrix.name == 'macOS-standalone' && github.event_name == 'workflow_dispatch'
962-
uses: actions/upload-artifact@v4
962+
uses: actions/upload-artifact@v7
963963
with:
964964
name: binary-macos-dmg
965965
path: 'dist'
@@ -976,11 +976,11 @@ jobs:
976976
- build_apple
977977
steps:
978978
- name: Checkout
979-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
979+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
980980
with:
981981
fetch-depth: 0
982982
- name: Cache ghr
983-
uses: actions/cache@v4
983+
uses: actions/cache@v5
984984
id: cache-ghr
985985
with:
986986
path: |
@@ -999,7 +999,7 @@ jobs:
999999
git tag v${{ needs.calculate_version.outputs.version }} -f
10001000
echo "VERSION=${{ needs.calculate_version.outputs.version }}" >> "$GITHUB_ENV"
10011001
- name: Download builds
1002-
uses: actions/download-artifact@v5
1002+
uses: actions/download-artifact@v8
10031003
with:
10041004
path: dist
10051005
merge-multiple: true

.github/workflows/docker.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949
echo "ref=$ref"
5050
echo "ref=$ref" >> $GITHUB_OUTPUT
5151
- name: Checkout
52-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
52+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5353
with:
5454
ref: ${{ steps.ref.outputs.ref }}
5555
fetch-depth: 0
5656
- name: Setup Go
57-
uses: actions/setup-go@v5
57+
uses: actions/setup-go@v6
5858
with:
5959
go-version: ~1.25.8
6060
- name: Clone cronet-go
@@ -77,7 +77,7 @@ jobs:
7777
- name: Cache Chromium toolchain
7878
if: matrix.naive
7979
id: cache-chromium-toolchain
80-
uses: actions/cache@v4
80+
uses: actions/cache@v5
8181
with:
8282
path: |
8383
~/cronet-go/naiveproxy/src/third_party/llvm-build/
@@ -151,7 +151,7 @@ jobs:
151151
mv sing-box "${BINARY_NAME}"
152152
echo "BINARY_NAME=${BINARY_NAME}" >> $GITHUB_ENV
153153
- name: Upload binary
154-
uses: actions/upload-artifact@v4
154+
uses: actions/upload-artifact@v7
155155
with:
156156
name: binary-${{ env.PLATFORM_PAIR }}
157157
path: ${{ env.BINARY_NAME }}
@@ -188,7 +188,7 @@ jobs:
188188
echo "ref=$ref"
189189
echo "ref=$ref" >> $GITHUB_OUTPUT
190190
- name: Checkout
191-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
191+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
192192
with:
193193
ref: ${{ steps.ref.outputs.ref }}
194194
fetch-depth: 0
@@ -197,7 +197,7 @@ jobs:
197197
platform=${{ matrix.platform }}
198198
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
199199
- name: Download binary
200-
uses: actions/download-artifact@v5
200+
uses: actions/download-artifact@v8
201201
with:
202202
name: binary-${{ env.PLATFORM_PAIR }}
203203
path: .
@@ -207,23 +207,23 @@ jobs:
207207
chmod +x sing-box-*
208208
ls -la sing-box-*
209209
- name: Setup QEMU
210-
uses: docker/setup-qemu-action@v3
210+
uses: docker/setup-qemu-action@v4
211211
- name: Setup Docker Buildx
212-
uses: docker/setup-buildx-action@v3
212+
uses: docker/setup-buildx-action@v4
213213
- name: Login to GitHub Container Registry
214-
uses: docker/login-action@v3
214+
uses: docker/login-action@v4
215215
with:
216216
registry: ghcr.io
217217
username: ${{ github.repository_owner }}
218218
password: ${{ secrets.GITHUB_TOKEN }}
219219
- name: Docker meta
220220
id: meta
221-
uses: docker/metadata-action@v5
221+
uses: docker/metadata-action@v6
222222
with:
223223
images: ${{ env.REGISTRY_IMAGE }}
224224
- name: Build and push by digest
225225
id: build
226-
uses: docker/build-push-action@v6
226+
uses: docker/build-push-action@v7
227227
with:
228228
platforms: ${{ matrix.platform }}
229229
context: .
@@ -238,7 +238,7 @@ jobs:
238238
digest="${{ steps.build.outputs.digest }}"
239239
touch "/tmp/digests/${digest#sha256:}"
240240
- name: Upload digest
241-
uses: actions/upload-artifact@v4
241+
uses: actions/upload-artifact@v7
242242
with:
243243
name: digests-${{ env.PLATFORM_PAIR }}
244244
path: /tmp/digests/*
@@ -268,15 +268,15 @@ jobs:
268268
echo "latest=$latest"
269269
echo "latest=$latest" >> $GITHUB_OUTPUT
270270
- name: Download digests
271-
uses: actions/download-artifact@v5
271+
uses: actions/download-artifact@v8
272272
with:
273273
path: /tmp/digests
274274
pattern: digests-*
275275
merge-multiple: true
276276
- name: Set up Docker Buildx
277-
uses: docker/setup-buildx-action@v3
277+
uses: docker/setup-buildx-action@v4
278278
- name: Login to GitHub Container Registry
279-
uses: docker/login-action@v3
279+
uses: docker/login-action@v4
280280
with:
281281
registry: ghcr.io
282282
username: ${{ github.repository_owner }}

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2828
with:
2929
fetch-depth: 0
3030
- name: Setup Go
31-
uses: actions/setup-go@v5
31+
uses: actions/setup-go@v6
3232
with:
3333
go-version: ^1.25
3434
- name: golangci-lint
35-
uses: golangci/golangci-lint-action@v8
35+
uses: golangci/golangci-lint-action@v9
3636
with:
3737
version: latest
3838
args: --timeout=30m

0 commit comments

Comments
 (0)