Skip to content

add machine client api pkg #68

add machine client api pkg

add machine client api pkg #68

Workflow file for this run

on:
push:
pull_request:
name: build
jobs:
build-amd64:
name: build-amd64
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up golang
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install golang make
- 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:
name: binaries
path: bin/
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
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*