mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13: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:
|
||||
strategy:
|
||||
matrix:
|
||||
target: [amd64, arm64, armhf]
|
||||
target: [amd64, arm64, arm]
|
||||
env:
|
||||
GOARCH: ${{ matrix.target }}
|
||||
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
|
||||
|
||||
# Given a GOARCH target, return the GCC for that target.
|
||||
case "$GOARCH" in
|
||||
"amd64")
|
||||
echo "x86_64-pc-linux-gnu-gcc"
|
||||
;;
|
||||
"arm64")
|
||||
echo "aarch64-linux-gnu-gcc"
|
||||
;;
|
||||
"armhf")
|
||||
echo "arm-linux-gnueabihf-gcc"
|
||||
;;
|
||||
*)
|
||||
echo "gcc" # Send us a pull request if RISC-V ever takes off
|
||||
;;
|
||||
esac
|
||||
function get_compiler() {
|
||||
case "$GOARCH" in
|
||||
"amd64")
|
||||
echo "x86_64-pc-linux-gnu-gcc"
|
||||
;;
|
||||
"arm64")
|
||||
echo "aarch64-linux-gnu-gcc"
|
||||
;;
|
||||
"arm")
|
||||
echo "arm-linux-gnueabihf-gcc"
|
||||
;;
|
||||
*)
|
||||
echo "gcc" # Send us a pull request if RISC-V ever takes off
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Given a GOARCH target, return a list of Ubuntu packages needed to compile for that target.
|
||||
function get_pkgs() {
|
||||
|
|
@ -35,7 +37,7 @@ function get_pkgs() {
|
|||
"arm64")
|
||||
echo "gcc-aarch64-linux-gnu libc6-dev-arm64-cross"
|
||||
;;
|
||||
"armhf")
|
||||
"arm")
|
||||
echo "gcc-arm-linux-gnueabihf libc6-dev-armhf-cross"
|
||||
;;
|
||||
"amd64" | *)
|
||||
|
|
|
|||
Loading…
Reference in a new issue