updated actions added upload artifacts and build for amd64 and arm64
This commit is contained in:
1 parent
bded162ac9
commit
79ada117d3
1 file changed
+23
@@ -12,3 +12,26 @@ jobs:
|
|||||||
run: go mod download && go mod tidy
|
run: go mod download && go mod tidy
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build
|
run: go build
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: artifacts
|
||||||
|
path: |
|
||||||
|
./up
|
||||||
|
./up.conf
|
||||||
|
|
||||||
|
Build:
|
||||||
|
runs-on: golang-1.26.1-alpine
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Prepare build
|
||||||
|
run: go mod download && go mod tidy
|
||||||
|
- name: Build
|
||||||
|
run: GOARCH=arm64 GOOS=linux go build
|
||||||
|
- name: Upload Artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: artifacts-arm64
|
||||||
|
path: |
|
||||||
|
./up
|
||||||
|
./up.conf
|
||||||
Reference in new issue
Block a user