Skip to content

Commit

Permalink
Merge pull request project-machine#22 from ashwing123/arm64-build
Browse files Browse the repository at this point in the history
Add arm64 build for machine
  • Loading branch information
raharper authored Aug 1, 2023
2 parents 242272d + bb5f35c commit a101fc7
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
pull_request:
name: build
jobs:
build:
name: build
build-amd64:
name: build-amd64
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
Expand All @@ -19,6 +19,8 @@ jobs:
- name: Make machine binaries
run: |
make
mv bin/machine bin/machine-linux-amd64
mv bin/machined bin/machined-linux-amd64
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand All @@ -31,3 +33,28 @@ jobs:
with:
files: bin/machine*

build-arm64:
name: build-arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu22.04

githubToken: ${{ github.token }}

install: |
apt-get -y update;
apt-get install -q -y git golang-go;
apt-get install -y golang make
run: |
make
mv bin/machine bin/machine-linux-arm64
mv bin/machined bin/machined-linux-arm64
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/machine*

0 comments on commit a101fc7

Please sign in to comment.