Skip to content

Commit

Permalink
image が arm の時だけ llvm を入れるようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jan 29, 2025
1 parent 1663a48 commit 7c86abf
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,23 @@ jobs:
# target: ubuntu-24.04_x86_64
# runs_on: ubuntu-24.04
# os: ubuntu
- name: ubuntu-22.04_x86_64
target: ubuntu-22.04_x86_64
runs_on: ubuntu-22.04
os: ubuntu
arch: x86_64
- name: macos-15_arm64
target: macos_arm64
runs_on: macos-15
os: macos
python_host_platform: "macosx-15.0-arm64"
archflags: "-arch arm64"
- name: macos-14_arm64
target: macos_arm64
runs_on: macos-14
os: macos
python_host_platform: "macosx-14.0-arm64"
archflags: "-arch arm64"
# - name: ubuntu-22.04_x86_64
# target: ubuntu-22.04_x86_64
# runs_on: ubuntu-22.04
# os: ubuntu
# arch: x86_64
# - name: macos-15_arm64
# target: macos_arm64
# runs_on: macos-15
# os: macos
# python_host_platform: "macosx-15.0-arm64"
# archflags: "-arch arm64"
# - name: macos-14_arm64
# target: macos_arm64
# runs_on: macos-14
# os: macos
# python_host_platform: "macosx-14.0-arm64"
# archflags: "-arch arm64"
python_version:
- "3.10"
- "3.11"
Expand All @@ -82,13 +82,15 @@ jobs:
- platform:
name: ubuntu-24.04_armv8
target: ubuntu-24.04_armv8
# x86_64 でビルド
runs_on: ubuntu-24.04
os: ubuntu
arch: armv8
python_version: "3.12"
- platform:
name: ubuntu-24.04_armv8
target: ubuntu-24.04_armv8
# arm64 でビルド
runs_on: ubuntu-24.04-arm
os: ubuntu
arch: armv8
Expand Down Expand Up @@ -118,7 +120,12 @@ jobs:
wget https://apt.llvm.org/llvm.sh
chmod a+x llvm.sh
sudo ./llvm.sh 18
if: ${{ matrix.platform.os == 'ubuntu' && matrix.platform.arch == 'armv8' }}
if: ${{ matrix.platform.os == 'ubuntu' && matrix.platform.arch == 'armv8' && matrix.platform.runs_on == 'ubuntu-24.04-arm' }}
- run: |
sudo apt-get -y install multistrap binutils-aarch64-linux-gnu
# multistrap に insecure なリポジトリからの取得を許可する設定を入れる
sudo sed -e 's/Apt::Get::AllowUnauthenticated=true/Apt::Get::AllowUnauthenticated=true";\n$config_str .= " -o Acquire::AllowInsecureRepositories=true/' -i /usr/sbin/multistrap
if: ${{ matrix.platform.os == 'ubuntu' && matrix.platform.arch == 'armv8' && matrix.platform.runs_on == 'ubuntu-24.04' }}
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
Expand Down

0 comments on commit 7c86abf

Please sign in to comment.