feat: add support for configuring/injecting cloud-init into VMs #81
Workflow file for this run
This file contains 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
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: Test machine unittests | |
run: | | |
make test | |
- 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 | |
make test | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: bin/machine* |