mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-28 17:23:09 -06:00
Go just calls it arm, not armhf
... which might be onto something, though how many soft-float devices are out there anyway?
This commit is contained in:
parent
030c025295
commit
aeb9bd7a2e
2
.github/workflows/cross-compiling-docker.yml
vendored
2
.github/workflows/cross-compiling-docker.yml
vendored
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
compile:
|
compile:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target: [amd64, arm64, armhf]
|
target: [amd64, arm64, arm]
|
||||||
env:
|
env:
|
||||||
GOARCH: ${{ matrix.target }}
|
GOARCH: ${{ matrix.target }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
32
.github/workflows/get-compiler.sh
vendored
32
.github/workflows/get-compiler.sh
vendored
|
|
@ -14,20 +14,22 @@ case "$1" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Given a GOARCH target, return the GCC for that target.
|
# Given a GOARCH target, return the GCC for that target.
|
||||||
case "$GOARCH" in
|
function get_compiler() {
|
||||||
"amd64")
|
case "$GOARCH" in
|
||||||
echo "x86_64-pc-linux-gnu-gcc"
|
"amd64")
|
||||||
;;
|
echo "x86_64-pc-linux-gnu-gcc"
|
||||||
"arm64")
|
;;
|
||||||
echo "aarch64-linux-gnu-gcc"
|
"arm64")
|
||||||
;;
|
echo "aarch64-linux-gnu-gcc"
|
||||||
"armhf")
|
;;
|
||||||
echo "arm-linux-gnueabihf-gcc"
|
"arm")
|
||||||
;;
|
echo "arm-linux-gnueabihf-gcc"
|
||||||
*)
|
;;
|
||||||
echo "gcc" # Send us a pull request if RISC-V ever takes off
|
*)
|
||||||
;;
|
echo "gcc" # Send us a pull request if RISC-V ever takes off
|
||||||
esac
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# Given a GOARCH target, return a list of Ubuntu packages needed to compile for that target.
|
# Given a GOARCH target, return a list of Ubuntu packages needed to compile for that target.
|
||||||
function get_pkgs() {
|
function get_pkgs() {
|
||||||
|
|
@ -35,7 +37,7 @@ function get_pkgs() {
|
||||||
"arm64")
|
"arm64")
|
||||||
echo "gcc-aarch64-linux-gnu libc6-dev-arm64-cross"
|
echo "gcc-aarch64-linux-gnu libc6-dev-arm64-cross"
|
||||||
;;
|
;;
|
||||||
"armhf")
|
"arm")
|
||||||
echo "gcc-arm-linux-gnueabihf libc6-dev-armhf-cross"
|
echo "gcc-arm-linux-gnueabihf libc6-dev-armhf-cross"
|
||||||
;;
|
;;
|
||||||
"amd64" | *)
|
"amd64" | *)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue