Skip to content

Build

Build #72

Workflow file for this run

name: Build
# Runs every Tuesday at 9 am UTC
on:
schedule:
- cron: '0 9 * * 2'
workflow_dispatch:
env:
GO111MODULE: on
jobs:
macos-arm64-build:
runs-on: [self-hosted, macos, arm64, 11, release]
timeout-minutes: 60
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
persist-credentials: false
- name: Install dependencies
# QEMU: required by Lima itself
# bash: required by test-example.sh (OS version of bash is too old)
# coreutils: required by test-example.sh for the "timeout" command
# autoconf: required for building vde
# automake: required for building vde
# FileMonitor: required to capture opened files by limactl and qemu-
run: |
brew update
brew install qemu bash coreutils
brew install autoconf automake
brew install cpanm
brew upgrade
sudo cpanm install JSON
curl -OL https://bitbucket.org/objective-see/deploy/downloads/FileMonitor_1.3.0.zip
rm -rf /Applications/FileMonitor.app
unzip FileMonitor_1.3.0.zip -d /Applications
shell: zsh {0}
- name: Make and release deps
run: |
(cd src/lima && git clean -f -d)
make -C src/lima PREFIX=/opt/homebrew all install
sudo echo hi
./bin/lima-and-qemu.pl
sudo echo hey
mv src/lima/lima-and-qemu.tar.gz src/lima/lima-and-qemu.macos-aarch64.tar.gz
shell: zsh {0}