dendrite/.github/workflows/cross-compiling-docker.yml
Caleb Xavier Berger aeb9bd7a2e Go just calls it arm, not armhf
... which might be onto something, though how many soft-float devices are out there
anyway?
2021-01-18 14:51:20 +00:00

23 lines
583 B
YAML

name: "(Cross) Compile Dendrite"
# dummy
on: push
jobs:
compile:
strategy:
matrix:
target: [amd64, arm64, arm]
env:
GOARCH: ${{ matrix.target }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: install (cross) compiler
run: sudo apt install $(./.github/workflows/get-compiler.sh pkgs)
- name: set CC env var
run: echo "CC=$(./.github/workflows/get-compiler.sh ccomp)" >> $GITHUB_ENV # https://stackoverflow.com/a/57969570/3551604
- run: go env
- run: ./build.sh