Skip to content

Commit ddc629f

Browse files
author
Kacper Kawecki
authored
Enable builds for ARM64 (#1)
1 parent 41dbff4 commit ddc629f

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@ jobs:
3030
- name: Create distribution
3131
run: make dist-all
3232

33-
- name: Upload artifact
33+
- name: Upload artifact for linux amd64
3434
uses: actions/upload-artifact@v2
3535
with:
3636
name: openvpn-linux-amd64.tar.gz
3737
path: dist/openvpn-linux-amd64.tar.gz
38+
- name: Upload artifact for linux arm64
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: openvpn-linux-arm64.tar.gz
42+
path: dist/openvpn-linux-arm64.tar.gz
3843

39-
- name: Upload artifact
44+
- name: Upload artifact for windows
4045
uses: actions/upload-artifact@v2
4146
with:
4247
name: openvpn-windows-amd64.zip
@@ -58,13 +63,19 @@ jobs:
5863
tag_name: ${{ github.ref }}
5964
release_name: ${{ github.ref }}
6065

61-
- name: Download artifacts
66+
- name: Download artifacts for linux amd64
6267
uses: actions/download-artifact@v2
6368
with:
6469
name: openvpn-linux-amd64.tar.gz
6570
path: ./
71+
72+
- name: Download artifacts for linux arm64
73+
uses: actions/download-artifact@v2
74+
with:
75+
name: openvpn-linux-arm64.tar.gz
76+
path: ./
6677

67-
- name: Download artifacts
78+
- name: Download artifacts for windows
6879
uses: actions/download-artifact@v2
6980
with:
7081
name: openvpn-windows-amd64.zip
@@ -83,6 +94,16 @@ jobs:
8394
asset_name: openvpn-linux-amd64.tar.gz
8495
asset_content_type: application/gzip
8596

97+
- name: Upload openvpn-linux-arm64.tar.gz
98+
uses: actions/upload-release-asset@v1
99+
env:
100+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101+
with:
102+
upload_url: ${{ steps.create_release.outputs.upload_url }}
103+
asset_path: ./openvpn-linux-arm64.tar.gz
104+
asset_name: openvpn-linux-arm64.tar.gz
105+
asset_content_type: application/gzip
106+
86107
- name: Upload openvpn-windows-amd64.zip
87108
uses: actions/upload-release-asset@v1
88109
env:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ dist: openvpn-$(GOOS)-$(GOARCH).tar.gz
1414

1515
.PHONY: dist-all
1616
dist-all: openvpn-linux-amd64.tar.gz
17+
dist-all: openvpn-linux-arm64.tar.gz
1718
dist-all: openvpn-windows-amd64.zip
1819

1920
openvpn-linux-amd64.tar.gz: GOOS := linux
2021
openvpn-linux-amd64.tar.gz: GOARCH := amd64
22+
openvpn-linux-arm64.tar.gz: GOOS := linux
23+
openvpn-linux-arm64.tar.gz: GOARCH := arm64
2124
openvpn-windows-amd64.zip: GOOS := windows
2225
openvpn-windows-amd64.zip: GOARCH := amd64
2326
openvpn-windows-amd64.zip: EXT := .exe

0 commit comments

Comments
 (0)