Skip to content

Commit

Permalink
upgrade github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Aug 15, 2024
1 parent 6e5898c commit c7be2c2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ jobs:
golang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: "1.17.13"
- run: patch -d go -p1 < go-runtime.patch
- run: bash ./make.bash
working-directory: go/src
- run: tar -czf golang.tar.gz go
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: golang.tar.gz
path: golang.tar.gz
Expand All @@ -38,15 +38,15 @@ jobs:
goos: linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: ./.github/actions/setup-xcc
with:
target: ${{ matrix.target }}
version: f9cb5162
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: golang.tar.gz
- run: tar -xzf golang.tar.gz -C /opt
Expand All @@ -65,7 +65,7 @@ jobs:
env:
TARGET: ${{ matrix.target }}
OUTPUT: ${{ matrix.goos }}-${{ matrix.goarch }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: libkflow-${{ matrix.target }}.a
path: libkflow-${{ matrix.target }}.a
Expand All @@ -74,7 +74,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: artifacts
- uses: actions/github-script@v6
Expand All @@ -91,7 +91,7 @@ jobs:
core.setOutput('version', version);
id: create-tag
- uses: softprops/action-gh-release@v1
- uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.create-tag.outputs.version }}
files: artifacts/**/*
Expand Down

0 comments on commit c7be2c2

Please sign in to comment.