Update go.yml
This commit is contained in:
parent
42b62b589f
commit
8aae4c757e
29
.github/workflows/go.yml
vendored
29
.github/workflows/go.yml
vendored
@ -6,14 +6,14 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
linux64_build:
|
||||||
name: Build
|
name: Linux x86_64 Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.15
|
- name: Set up Go 1.18
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: 1.18
|
||||||
id: go
|
id: go
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -26,3 +26,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: myurls-linux-amd64
|
name: myurls-linux-amd64
|
||||||
path: build/myurls-linux-amd64.tar.gz
|
path: build/myurls-linux-amd64.tar.gz
|
||||||
|
|
||||||
|
aarch64_build:
|
||||||
|
name: Linux aarch64 Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up Go 1.18
|
||||||
|
uses: actions/setup-go@v1
|
||||||
|
with:
|
||||||
|
go-version: 1.18
|
||||||
|
id: go
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt install gcc-aarch64-linux-gnu
|
||||||
|
- name: Build
|
||||||
|
run: /bin/sh -c "chmod +x release.sh && bash release.sh"
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: myurls-linux-arm64
|
||||||
|
path: build/myurls-linux-arm64.tar.gz
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user