Skip to content

Commit 5a137f0

Browse files
author
Will
committed
upgrade github actions
1 parent 6e5898c commit 5a137f0

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/build.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ jobs:
88
golang:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
submodules: true
14-
- uses: actions/setup-go@v4
14+
- uses: actions/setup-go@v5
1515
with:
1616
go-version: "1.17.13"
17+
cache: false
1718
- run: patch -d go -p1 < go-runtime.patch
1819
- run: bash ./make.bash
1920
working-directory: go/src
2021
- run: tar -czf golang.tar.gz go
21-
- uses: actions/upload-artifact@v3
22+
- uses: actions/upload-artifact@v4
2223
with:
2324
name: golang.tar.gz
2425
path: golang.tar.gz
@@ -38,15 +39,15 @@ jobs:
3839
goos: linux
3940
runs-on: ubuntu-latest
4041
steps:
41-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4243
with:
4344
fetch-depth: 0
4445
submodules: true
4546
- uses: ./.github/actions/setup-xcc
4647
with:
4748
target: ${{ matrix.target }}
4849
version: f9cb5162
49-
- uses: actions/download-artifact@v3
50+
- uses: actions/download-artifact@v4
5051
with:
5152
name: golang.tar.gz
5253
- run: tar -xzf golang.tar.gz -C /opt
@@ -65,7 +66,7 @@ jobs:
6566
env:
6667
TARGET: ${{ matrix.target }}
6768
OUTPUT: ${{ matrix.goos }}-${{ matrix.goarch }}
68-
- uses: actions/upload-artifact@v3
69+
- uses: actions/upload-artifact@v4
6970
with:
7071
name: libkflow-${{ matrix.target }}.a
7172
path: libkflow-${{ matrix.target }}.a
@@ -74,10 +75,10 @@ jobs:
7475
publish:
7576
runs-on: ubuntu-latest
7677
steps:
77-
- uses: actions/download-artifact@v3
78+
- uses: actions/download-artifact@v4
7879
with:
7980
path: artifacts
80-
- uses: actions/github-script@v6
81+
- uses: actions/github-script@v7
8182
with:
8283
script: |
8384
const version = context.sha.substring(0, 8);
@@ -91,7 +92,7 @@ jobs:
9192
9293
core.setOutput('version', version);
9394
id: create-tag
94-
- uses: softprops/action-gh-release@v1
95+
- uses: softprops/action-gh-release@v2
9596
with:
9697
tag_name: ${{ steps.create-tag.outputs.version }}
9798
files: artifacts/**/*

0 commit comments

Comments
 (0)