ci: migrate .drone.yml to github build action #29
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
name: build | |
on: | |
push: | |
branches: | |
- master | |
- v* | |
pull_request: | |
#env: | |
# Fake up DRONE_BRANCH so it's picked up when dapper gets to scripts/version | |
# This is no good for PRs, because it'll be, e.g. "697/merge", which breaks things | |
# as the version is used in file paths. Probably fine for master and v* versions | |
# though... | |
#DRONE_BRANCH: ${{ github.ref_name }} | |
jobs: | |
build-iso-images: | |
name: Build ISO Images | |
strategy: | |
matrix: | |
arch: | |
- amd64 | |
- arm64 | |
# hdd=50 is somewhat arbitrary here, and seems to give a 77G disk | |
# The VM runners are named "x64", not "amd64" like other docker things... | |
runs-on: runs-on,runner=4cpu-linux-${{ matrix.arch == 'amd64' && 'x64' || matrix.arch }},hdd=50,run-id=${{ github.run_id }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Build ISO | |
- name: Run make ci | |
run: make ci | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts_${{ matrix.arch }} | |
path: ./dist/artifacts/* |