Skip to content

Commit

Permalink
Merge pull request #156 from nathan818fr/release-i686-linux-musl
Browse files Browse the repository at this point in the history
Add i686-linux-musl to release targets
  • Loading branch information
rdbo authored Dec 8, 2023
2 parents b470cbf + fe70eba commit 2415894
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
{"target": "i686-linux-gnu-static", "runs-on": "ubuntu-latest"}
{"target": "x86_64-linux-gnu-shared", "runs-on": "ubuntu-latest"}
{"target": "x86_64-linux-gnu-static", "runs-on": "ubuntu-latest"}
{"target": "i686-linux-musl-shared", "runs-on": "ubuntu-latest"}
{"target": "i686-linux-musl-static", "runs-on": "ubuntu-latest"}
{"target": "x86_64-linux-musl-shared", "runs-on": "ubuntu-latest"}
{"target": "x86_64-linux-musl-static", "runs-on": "ubuntu-latest"}
{"target": "i686-windows-msvc-shared-md", "runs-on": "windows-2019"}
Expand Down
6 changes: 4 additions & 2 deletions tools/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ declare -gr NIX_PLATFORMS=(
x86_64-linux-gnu
aarch64-linux-gnu
# Linux (Alpine/musl)
i686-linux-musl
x86_64-linux-musl
aarch64-linux-musl
)
Expand Down Expand Up @@ -118,11 +119,12 @@ function _build_in_docker() {
*-linux-musl-*) docker_os=linux-musl ;;
esac
case "$target" in
i686-*)
# cross-compile i686 from x86_64 (CMake is no longer compiled for i686, etc.)
i686-linux-gnu-*)
# cross-compile i686 from x86_64 (CMake is no longer compiled for i686 and we can't rely on the old distro package)
docker_platform=linux/amd64
docker_os+='-crossbuild-i686'
;;
i686-*) docker_platform=linux/386 ;;
x86_64-*) docker_platform=linux/amd64 ;;
aarch64-*) docker_platform=linux/arm64 ;;
esac
Expand Down

0 comments on commit 2415894

Please sign in to comment.