github actions: add binfmt-support package #311
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 Go compiler | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/[email protected] | |
- name: Prerequisites | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y binfmt-support qemu-user-static | |
- name: Compile Go with make.bash | |
run: | | |
cd src ; ./make.bash | |
- name: Compile Go with all.bash | |
run: | | |
cd src ; ./clean.bash ; ./all.bash | |
- name: Run Go distribution tests under GOOS=tamago | |
run: | | |
GO_BUILDER_NAME="tamago" GOOS=tamago GOARCH=arm ./bin/go tool dist test |