Skip to content

Commit

Permalink
chore: fix missing cross-compilation Go envs
Browse files Browse the repository at this point in the history
See #145
  • Loading branch information
devgianlu committed Nov 16, 2024
1 parent eab244b commit c6486e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ jobs:
include:
- target: x86-64-linux-gnu
goarch: amd64
goamd64: v1
cc: gcc
tar: linux_x86_64
- target: arm-rpi-linux-gnueabihf
goarch: arm
goarm: 6
cc: arm-rpi-linux-gnueabihf-gcc
tar: linux_armv6_rpi
- target: arm-linux-gnueabihf
goarch: arm
goarm: 6
cc: arm-linux-gnueabihf-gcc
tar: linux_armv6
- target: aarch64-linux-gnu
Expand All @@ -44,6 +47,8 @@ jobs:
docker build \
--build-arg TARGET=${{ matrix.target }} \
--build-arg GOARCH=${{ matrix.goarch }} \
--build-arg GOARM=${{ matrix.goarm }} \
--build-arg GOAMD64=${{ matrix.goamd64 }} \
--build-arg CC=${{ matrix.cc }} \
-t go-librespot-build-${{ matrix.target }} \
-f Dockerfile.build \
Expand Down
3 changes: 3 additions & 0 deletions CROSS_COMPILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ at [Multi-platform builds](https://docs.docker.com/build/building/multi-platform
docker build \
--build-arg TARGET=x86-64-linux-gnu \
--build-arg GOARCH=amd64 \
--build-arg GOAMD64=v1 \
--build-arg CC=gcc \
-f Dockerfile.build \
-t go-librespot-build-x86_64 .
Expand All @@ -23,6 +24,7 @@ docker build \
docker build \
--build-arg TARGET=arm-rpi-linux-gnueabihf \
--build-arg GOARCH=arm \
--build-arg GOARM=6 \
--build-arg CC=arm-rpi-linux-gnueabihf-gcc \
-f Dockerfile.build \
-t go-librespot-build-armv6_rpi .
Expand All @@ -34,6 +36,7 @@ docker build \
docker build \
--build-arg TARGET=arm-linux-gnueabihf \
--build-arg GOARCH=arm \
--build-arg GOARM=6 \
--build-arg CC=arm-linux-gnueabihf-gcc \
-f Dockerfile.build \
-t go-librespot-build-armv6 .
Expand Down

0 comments on commit c6486e2

Please sign in to comment.