Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork45
feat: build arm64 binary#467
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
name:Go | |
on: | |
push: | |
pull_request: | |
branches:[ "main" ] | |
jobs: | |
build: | |
runs-on:ubuntu-latest | |
container: | |
image:ghcr.io/vanilla-os/pico:main | |
steps: | |
-uses:actions/checkout@v4 | |
-name:Set up Go | |
uses:actions/setup-go@v5 | |
with: | |
go-version-file:go.mod | |
-name:Build | |
run:| | |
go build -o apx-amd64 -ldflags="-X 'main.Version=${{ github.sha }}'" | |
GOARCH=arm64 go build -o apx-arm64 -ldflags="-X 'main.Version=${{ github.sha }}'" | |
-name:Check for missing strings | |
uses:vanilla-os/missing-strings-golang-action@v0.1.0 | |
-name:Compress | |
run:| | |
tar -czvf apx-amd64.tar.gz apx-amd64 | |
tar -czvf apx-arm64.tar.gz apx-arm64 | |
-name:Compress-manpage | |
run:tar -czvf apx-man.tar.gz man/man1/apx.1 | |
-uses:actions/upload-artifact@v4 | |
with: | |
name:apx | |
path:apx*.tar.gz | |
-uses:softprops/action-gh-release@v2 | |
if:github.repository == 'vanilla-os/apx' && github.ref == 'refs/heads/main' | |
with: | |
token:"${{ secrets.GITHUB_TOKEN }}" | |
tag_name:"continuous" | |
prerelease:true | |
name:"Continuous Build" | |
files:apx*.tar.gz |