Skip to content

Commit

Permalink
CI: give up on musl targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ahihi committed Aug 2, 2024
1 parent 30d0edd commit f670345
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 51 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- x86_64-apple-darwin
Expand All @@ -30,15 +28,9 @@ jobs:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
target-apt-arch: amd64
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
target-apt-arch: amd64
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
target-apt-arch: arm64
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
target-apt-arch: arm64
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: i686-pc-windows-msvc
Expand All @@ -59,33 +51,6 @@ jobs:
- name: checkout
uses: actions/checkout@v4

# - name: set up Ubuntu multiarch
# if: startsWith(matrix.os, 'ubuntu') && matrix.target-apt-arch != 'amd64'
# run: |
# readonly DISTRO_CODENAME=$(lsb_release -c | sed -E 's/Codename:\s*//')
# echo "DISTRO_CODENAME=$DISTRO_CODENAME"
# sudo dpkg --add-architecture "${{ matrix.target-apt-arch }}"
# sudo sed -i "s/^deb http/deb [arch=$(dpkg-architecture -q DEB_HOST_ARCH)] http/" /etc/apt/sources.list
# sudo sed -i "s/^deb mirror/deb [arch=$(dpkg-architecture -q DEB_HOST_ARCH)] mirror/" /etc/apt/sources.list
# for suite in '' '-updates' '-backports' '-security'; do
# echo "deb [arch=${{ matrix.target-apt-arch }}] http://ports.ubuntu.com/ $DISTRO_CODENAME$suite main universe multiverse" | \
# sudo tee -a /etc/apt/sources.list >/dev/null
# done

# - name: cache QEMU and AArch64 cross compiler
# if: startsWith(matrix.target, 'aarch64-unknown-linux')
# uses: awalsh128/cache-apt-pkgs-action@latest
# with:
# packages: qemu-user gcc-aarch64-linux-gnu libc6:arm64
# version: 1.0

# - name: cache musl development files
# if: endsWith(matrix.target, '-musl')
# uses: awalsh128/cache-apt-pkgs-action@latest
# with:
# packages: musl-tools musl-dev:${{ matrix.target-apt-arch }}
# version: 1.0

- name: cache apt packages
if: startsWith(matrix.os, 'ubuntu')
uses: awalsh128/cache-apt-pkgs-action@latest
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ jobs:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- x86_64-apple-darwin
Expand Down
15 changes: 1 addition & 14 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[target.x86_64-unknown-linux-gnu]
pre-build = [
"export PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu=/usr/lib/x86_64-linux-gnu/pkgconfig",
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libasound2-dev:$CROSS_DEB_ARCH"
]
Expand All @@ -10,17 +11,3 @@ pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libasound2-dev:$CROSS_DEB_ARCH"
]

[target.x86_64-unknown-linux-musl]
pre-build = [
"find / -name alsa.pc 2> /dev/null || true",
"export PKG_CONFIG_LIBDIR_x86_64_unknown_linux_musl=/usr/lib/x86_64-linux-musl/pkgconfig",
"apk add alsa-lib-dev"
]

[target.aarch64-unknown-linux-musl]
pre-build = [
"find / -name alsa.pc 2> /dev/null || true",
"export PKG_CONFIG_LIBDIR_aarch64_unknown_linux_musl=/usr/lib/aarch64-linux-musl/pkgconfig",
"apk add alsa-lib-dev"
]

0 comments on commit f670345

Please sign in to comment.