Skip to content

Commit

Permalink
Different containers per arch
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 9, 2023
1 parent 4629f96 commit 411a23f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,39 @@ jobs:
include:
- target: linux-aarch64
pkgprefix: aarch64-linux-gnu
container: ubuntu:22.04
- target: linux-armhf
pkgprefix: arm-linux-gnueabihf
container: ubuntu:22.04
- target: linux-i686
pkgprefix: i386-linux-gnu
container: ubuntu:18.04
- target: linux-x86_64
pkgprefix: x86_64-linux-gnu
container: ubuntu:18.04
runs-on: ubuntu-latest
container:
image: ubuntu:20.04
image: ${{ matrix.container }}
steps:
- name: Install git
run: |
apt-get update -qq && apt-get install -yqq --no-install-recommends ca-certificates curl git openssl
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git_2.34.1-1ubuntu1~bpo20.04.1~ppa1_amd64.deb
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git-man_2.34.1-1ubuntu1~bpo20.04.1~ppa1_all.deb
dpkg -i *.deb
rm *.deb
apt-get update -qq && apt-get install -yqq --no-install-recommends ca-certificates git openssl
case "${{ matrix.container }}" in
"ubuntu:18.04")
apt-get install -yqq --no-install-recommends curl libpcre2-8-0
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git_2.34.1-1ubuntu1~bpo18.04.1~ppa1_amd64.deb
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git-man_2.34.1-1ubuntu1~bpo18.04.1~ppa1_all.deb
dpkg -i *.deb
rm *.deb
;;
"ubuntu:20.04")
apt-get install -yqq --no-install-recommends curl
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git_2.34.1-1ubuntu1~bpo20.04.1~ppa1_amd64.deb
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git-man_2.34.1-1ubuntu1~bpo20.04.1~ppa1_all.deb
dpkg -i *.deb
rm *.deb
;;
esac
- uses: actions/checkout@v3
with:
submodules: recursive
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-ttl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ -z "${MESON_EXE_WRAPPER}" ]; then

elif echo "${fileout}" | grep -q "ARM aarch64"; then
if [ "$(uname -m)" != "aarch64" ]; then
MESON_EXE_WRAPPER="qemu-aarch64-static -L /usr/lib/aarch64-linux-gnu"
MESON_EXE_WRAPPER="qemu-aarch64-static"
fi

elif echo "${fileout}" | grep -q "ARM"; then
Expand Down

0 comments on commit 411a23f

Please sign in to comment.