parent
a0bc0df32a
commit
7a4a585257
29
.gitea/workflows/release.yaml
Normal file
29
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
trategy:
|
||||||
|
matrix:
|
||||||
|
go-os: [ 'linux' ]
|
||||||
|
go-arch: [ 'amd64', 'arm64' ]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup Go ${{ matrix.go-os }} ${{ matrix.go-arch }}
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.21.x'
|
||||||
|
- name: Display Go version
|
||||||
|
run: GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go version
|
||||||
|
- name: Install dependencies
|
||||||
|
run: GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go get -v
|
||||||
|
- name: Test
|
||||||
|
run: GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go test -v ./...
|
||||||
|
- name: Build
|
||||||
|
run: GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go build -v ./cmd/update-ip
|
||||||
|
- name: Upload Go test results
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: update-ip_${{ matrix.go-os }}_${{ matrix.go-arch }}
|
||||||
|
path: update-ip
|
Loading…
Reference in New Issue
Block a user