Skip to content

Commit

Permalink
Add aarch64 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro committed May 24, 2024
1 parent ee62551 commit 9c37411
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 13 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86,
# aarch64, armv7, s390x, ppc64le
target: [
#x86_64, x86,
aarch64
# armv7, s390x, ppc64le
]
steps:
- uses: actions/checkout@v3
Expand Down
44 changes: 33 additions & 11 deletions ci/prepare-ci-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,38 @@

set -e

if command -v apt-get &> /dev/null; then
echo "using apt-get"
apt-get update
apt-get install -y libxkbcommon0 libxkbcommon-dev libxkbcommon-tools automake libtool pkg-config

yum install -y libxkbcommon-devel libatomic
cat <<EOF >> /etc/apt/sources.list
deb [arch=arm64] http://ports.ubuntu.com/ jammy main multiverse universe
deb [arch=arm64] http://ports.ubuntu.com/ jammy-security main multiverse universe
deb [arch=arm64] http://ports.ubuntu.com/ jammy-backports main multiverse universe
deb [arch=arm64] http://ports.ubuntu.com/ jammy-updates main multiverse universe
EOF
dpkg --print-foreign-architectures
dpkg --add-architecture arm64
dpkg --print-foreign-architectures
set +e
apt-get update
set -e
apt-get install -y libxkbcommon-dev:arm64
dpkg -L libxkbcommon-dev:arm64
export PATH=~/usr/lib/aarch64-linux-gnu:$PATH
elif command -v yum &> /dev/null; then
echo "using yum"
yum install -y libxkbcommon-devel libatomic

cd /tmp
git clone https://github.com/pkgconf/pkgconf
cd pkgconf

./autogen.sh
./configure \
--with-system-libdir=/lib:/usr/lib \
--with-system-includedir=/usr/include
make
make install
# build pkg-config manually due to a bug in the old version from the repo
cd /tmp
git clone https://github.com/pkgconf/pkgconf
cd pkgconf
./autogen.sh
./configure \
--with-system-libdir=/lib:/usr/lib \
--with-system-includedir=/usr/include
make
make install
fi

0 comments on commit 9c37411

Please sign in to comment.