Skip to content

Commit aa67f5b

Browse files
committed
add arm64 linux build
Signed-off-by: Daniel Stamer <[email protected]>
1 parent 092bd0a commit aa67f5b

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,34 @@ jobs:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
VERSION: 1.1.1
3434

35+
release-linux-aarch64:
36+
name: release linux/aarch64
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: setup go
40+
uses: actions/setup-go@v1
41+
with:
42+
go-version: 1.13
43+
- name: checkout source
44+
uses: actions/checkout@master
45+
- name: get dependencies
46+
run: |
47+
npm install github-release-cli
48+
- name: build
49+
run: |
50+
go build -v -o tresor_linux64a main.go
51+
sha256sum tresor_linux64a > tresor_linux64a.sha256
52+
env:
53+
GOARCH: arm64
54+
GOOS: linux
55+
CGO_ENABLED: 0
56+
- name: release
57+
run: |
58+
./node_modules/github-release-cli/bin/github-release upload --token "${GITHUB_TOKEN}" --owner helloworlddan --repo tresor --tag "linux-v${VERSION}a" --name "tresor_linux64a" --body "Current stable release for Linux 64-bit ARM" tresor_linux64a tresor_linux64a.sha256
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
VERSION: 1.1.1
62+
3563
release-darwin-amd64:
3664
name: release darwin/amd64
3765
runs-on: ubuntu-latest
@@ -86,4 +114,4 @@ jobs:
86114
./node_modules/github-release-cli/bin/github-release upload --token "${GITHUB_TOKEN}" --owner helloworlddan --repo tresor --tag "windows-v${VERSION}" --name "tresor.exe" --body "Current stable release for Windows 64-bit" tresor.exe tresor.exe.sha256
87115
env:
88116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89-
VERSION: 1.1.1
117+
VERSION: 1.1.1

0 commit comments

Comments
 (0)