@@ -11,7 +11,7 @@ permissions:
1111jobs :
1212 build-x86_64 :
1313 name : Build (x86_64, ${{ matrix.libtorch_variant }})
14- runs-on : ubuntu-latest
14+ runs-on : ubuntu-24.04
1515 strategy :
1616 fail-fast : false
1717 matrix :
@@ -96,25 +96,19 @@ jobs:
9696
9797 build-aarch64 :
9898 name : Build (aarch64)
99- runs-on : ubuntu-latest
100- container :
101- image : debian:bookworm-slim
99+ runs-on : ubuntu-24.04-arm
102100 steps :
103101 - name : Install base dependencies
104102 shell : bash
105103 run : |
106104 set -euo pipefail
107105 export DEBIAN_FRONTEND=noninteractive
108- dpkg --add-architecture arm64
109- apt-get update
110- apt-get install -y --no-install-recommends \
106+ sudo apt-get update
107+ sudo apt-get install -y --no-install-recommends \
111108 ca-certificates \
112109 pkg-config \
113110 libssl-dev \
114- libssl-dev:arm64 \
115- gcc-aarch64-linux-gnu \
116- g++-aarch64-linux-gnu \
117- libc6-dev-arm64-cross \
111+ libopenblas-dev \
118112 build-essential \
119113 git \
120114 curl \
@@ -127,10 +121,10 @@ jobs:
127121 shell : bash
128122 run : |
129123 set -euo pipefail
130- curl -LO https://download.pytorch.org/ libtorch/cu124/ libtorch-cxx11-abi-shared-with-deps- 2.4.0%2Bcu124.zip
131- unzip libtorch-cxx11-abi-shared-with-deps- 2.4.0%2Bcu124.zip
132- rm libtorch-cxx11-abi-shared-with-deps- 2.4.0%2Bcu124.zip
133- libtorch_dir="$(pwd)/libtorch "
124+ curl -LO https://github.com/second-state/ libtorch-releases/releases/download/v2.4.0/ libtorch-cxx11-abi-aarch64- 2.4.0.tar.gz
125+ tar xzvf libtorch-cxx11-abi-aarch64- 2.4.0.tar.gz
126+ rm libtorch-cxx11-abi-aarch64- 2.4.0.tar.gz
127+ libtorch_dir="$(pwd)/torch "
134128 echo "LIBTORCH=$libtorch_dir" >> "$GITHUB_ENV"
135129 if [ -n "${LD_LIBRARY_PATH:-}" ]; then
136130 echo "LD_LIBRARY_PATH=$libtorch_dir/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
@@ -184,7 +178,7 @@ jobs:
184178 runs-on : ubuntu-latest
185179 needs :
186180 - build-x86_64
187- # - build-aarch64
181+ - build-aarch64
188182 steps :
189183 - name : Download artifacts
190184 uses : actions/download-artifact@v4
0 commit comments