diff --git a/.github/workflows/build-nativeshims.yml b/.github/workflows/build-nativeshims.yml index a0ebe436..c6bc97cf 100644 --- a/.github/workflows/build-nativeshims.yml +++ b/.github/workflows/build-nativeshims.yml @@ -64,7 +64,7 @@ jobs: build-linux-amd64: name: Build Linux (amd64) - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - run: | @@ -78,7 +78,7 @@ jobs: build-linux-arm64: name: Build Linux (arm64) - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - run: | diff --git a/Yubico.NativeShims/build-linux-arm64.sh b/Yubico.NativeShims/build-linux-arm64.sh index 94cce541..ebe8a3ae 100644 --- a/Yubico.NativeShims/build-linux-arm64.sh +++ b/Yubico.NativeShims/build-linux-arm64.sh @@ -3,6 +3,7 @@ # Set environment variables export VCPKG_INSTALLATION_ROOT=$GITHUB_WORKSPACE/vcpkg \ VCPKG_FORCE_SYSTEM_BINARIES=1 \ + VCPKG_DISABLE_METRICS=1 \ PATH=/usr/local/bin:$VCPKG_INSTALLATION_ROOT:$PATH # Install necessary packages @@ -23,10 +24,11 @@ DEBIAN_FRONTEND=noninteractive sudo apt-get install -yq \ ninja-build \ g++-aarch64-linux-gnu \ gcc-aarch64-linux-gnu \ + linux-libc-dev \ -# Install latest version of CMake for Ubuntu 20.04 +# Install latest version of CMake for Ubuntu wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null -echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null +echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null sudo apt-get update -qq sudo apt-get install cmake -yq @@ -34,10 +36,10 @@ sudo apt-get install cmake -yq git clone https://github.com/Microsoft/vcpkg.git ${VCPKG_INSTALLATION_ROOT} && ${VCPKG_INSTALLATION_ROOT}/bootstrap-vcpkg.sh # Install arm64 version of libpcsclite -echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe multiverse -deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe multiverse -deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe multiverse -deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list > /dev/null +echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse +deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse +deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse +deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/arm64.list sudo dpkg --add-architecture arm64 sudo apt-get update -qq sudo apt-get install libpcsclite-dev:arm64 -yq