Skip to content

Commit

Permalink
Enable builds for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperk committed Sep 17, 2021
1 parent 41dbff4 commit 090ec40
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ jobs:
- name: Create distribution
run: make dist-all

- name: Upload artifact
- name: Upload artifact for linux amd64
uses: actions/upload-artifact@v2
with:
name: openvpn-linux-amd64.tar.gz
path: dist/openvpn-linux-amd64.tar.gz
- name: Upload artifact for linux arm64
uses: actions/upload-artifact@v2
with:
name: openvpn-linux-arm64.tar.gz
path: dist/openvpn-linux-arm64.tar.gz

- name: Upload artifact
- name: Upload artifact for windows
uses: actions/upload-artifact@v2
with:
name: openvpn-windows-amd64.zip
Expand All @@ -58,13 +63,19 @@ jobs:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}

- name: Download artifacts
- name: Download artifacts for linux amd64
uses: actions/download-artifact@v2
with:
name: openvpn-linux-amd64.tar.gz
path: ./

- name: Download artifacts for linux arm64
uses: actions/download-artifact@v2
with:
name: openvpn-linux-arm64.tar.gz
path: ./

- name: Download artifacts
- name: Download artifacts for windows
uses: actions/download-artifact@v2
with:
name: openvpn-windows-amd64.zip
Expand All @@ -83,6 +94,16 @@ jobs:
asset_name: openvpn-linux-amd64.tar.gz
asset_content_type: application/gzip

- name: Upload openvpn-linux-arm64.tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./openvpn-linux-arm64.tar.gz
asset_name: openvpn-linux-arm64.tar.gz
asset_content_type: application/gzip

- name: Upload openvpn-windows-amd64.zip
uses: actions/upload-release-asset@v1
env:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ dist: openvpn-$(GOOS)-$(GOARCH).tar.gz

.PHONY: dist-all
dist-all: openvpn-linux-amd64.tar.gz
dist-all: openvpn-linux-arm64.tar.gz
dist-all: openvpn-windows-amd64.zip

openvpn-linux-amd64.tar.gz: GOOS := linux
openvpn-linux-amd64.tar.gz: GOARCH := amd64
openvpn-linux-arm64.tar.gz: GOOS := linux
openvpn-linux-arm64.tar.gz: GOARCH := arm64
openvpn-windows-amd64.zip: GOOS := windows
openvpn-windows-amd64.zip: GOARCH := amd64
openvpn-windows-amd64.zip: EXT := .exe
Expand Down

0 comments on commit 090ec40

Please sign in to comment.