mirror of
https://github.com/criyle/go-judge.git
synced 2025-09-26 22:39:12 +08:00
github: update action versions
This commit is contained in:
parent
cb1256f4bf
commit
eca512b06f
38
.github/workflows/build.yml
vendored
38
.github/workflows/build.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
-
|
||||
@ -20,24 +20,24 @@ jobs:
|
||||
run: git fetch --force --tags
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
uses: docker/setup-qemu-action@v3
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21'
|
||||
-
|
||||
name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v3
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
if: ${{ contains(github.ref, 'v') }}
|
||||
with:
|
||||
# either 'goreleaser' (default) or 'goreleaser-pro'
|
||||
@ -48,7 +48,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
-
|
||||
name: Test GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v3
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
if: ${{ ! contains(github.ref, 'v') }}
|
||||
with:
|
||||
# either 'goreleaser' (default) or 'goreleaser-pro'
|
||||
@ -79,15 +79,15 @@ jobs:
|
||||
GOARCH: "arm64"
|
||||
steps:
|
||||
- name: Set up Go 1.21
|
||||
uses: actions/setup-go@v3
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21'
|
||||
- name: Check out
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Get git tag ref
|
||||
run: git fetch --prune --unshallow --tags
|
||||
- name: Restore Cache
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
@ -115,25 +115,25 @@ jobs:
|
||||
go build -buildmode=c-shared -o go-judge.so ./cmd/go-judge-ffi
|
||||
- name: Upload go-judge on linux
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-${{ matrix.GOARCH }}
|
||||
path: go-judge
|
||||
- name: Upload go-judge-shell on linux
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-shell-${{ matrix.GOARCH }}
|
||||
path: go-judge-shell
|
||||
- name: Upload go-judge-init on linux
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-init-${{ matrix.GOARCH }}
|
||||
path: go-judge-init
|
||||
- name: Upload go-judge.so on linux
|
||||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.GOARCH == 'amd64' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-${{ matrix.GOARCH }}.so
|
||||
path: go-judge.so
|
||||
@ -152,13 +152,13 @@ jobs:
|
||||
go build -buildmode=c-shared -o go-judge.dll ./cmd/go-judge-ffi
|
||||
- name: Upload go-judge.exe on Windows
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-${{ matrix.GOARCH }}.exe
|
||||
path: go-judge.exe
|
||||
- name: Upload go-judge.dll on Windows
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-${{ matrix.GOARCH }}.dll
|
||||
path: go-judge.dll
|
||||
@ -178,19 +178,19 @@ jobs:
|
||||
go build -buildmode=c-shared -o go-judge.dylib ./cmd/go-judge-ffi
|
||||
- name: Upload go-judge on macOS
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-MacOS-${{ matrix.GOARCH }}
|
||||
path: go-judge
|
||||
- name: Upload go-judge-shell on macOS
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-shell-MacOS-${{ matrix.GOARCH }}
|
||||
path: go-judge-shell
|
||||
- name: Upload go-judge.dylib on macOS
|
||||
if: ${{ matrix.os == 'macos-latest' && matrix.GOARCH == 'amd64' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-${{ matrix.GOARCH }}.dylib
|
||||
path: go-judge.dylib
|
||||
|
Loading…
Reference in New Issue
Block a user