mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Add workflow for cross-compiling dendrite
This commit is contained in:
parent
a2492a9fd1
commit
030c025295
22
.github/workflows/cross-compiling-docker.yml
vendored
Normal file
22
.github/workflows/cross-compiling-docker.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
name: "(Cross) Compile Dendrite"
|
||||||
|
|
||||||
|
# dummy
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
compile:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target: [amd64, arm64, armhf]
|
||||||
|
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
|
||||||
Loading…
Reference in a new issue