Run GitHub Actions workflow on Ubuntu 24.04

This commit is contained in:
Takumi Sueda
2026-04-13 03:27:23 +09:00
parent b15b33902b
commit bc9331f069

View File

@@ -34,7 +34,7 @@ jobs:
build: build:
name: Build name: Build
runs-on: ubuntu-20.04 runs-on: ubuntu-24.04
needs: [create_release] needs: [create_release]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -42,21 +42,17 @@ jobs:
submodules: true submodules: true
- name: Make /opt writable and create dir - name: Make /opt writable and create dir
run: sudo chown "$(whoami):$(whoami)" /opt && mkdir /opt/cegcc run: sudo chown "$(whoami):$(whoami)" /opt && mkdir /opt/cegcc
- name: Workaround for apt update failure
run: sudo rm /etc/apt/sources.list.d/github_git-lfs.*
- name: Install deps - name: Install deps
run: | run: |
sudo sed -i 's+^deb http://azure+deb [arch=amd64] http://azure+g' /etc/apt/sources.list sudo sed -i 's/^Types: deb/Architectures: amd64\nTypes: deb/' /etc/apt/sources.list.d/ubuntu.sources
cat <<EOF >> aarch64.list sudo tee /etc/apt/sources.list.d/arm64.sources <<EOF
deb [arch=arm64] http://ports.ubuntu.com/ focal main restricted Enabled: yes
deb [arch=arm64] http://ports.ubuntu.com/ focal-updates main restricted Types: deb
deb [arch=arm64] http://ports.ubuntu.com/ focal universe URIs: http://ports.ubuntu.com/
deb [arch=arm64] http://ports.ubuntu.com/ focal-updates universe Suites: noble noble-updates noble-backports
deb [arch=arm64] http://ports.ubuntu.com/ focal multiverse Components: main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ focal-updates multiverse Architectures: arm64
deb [arch=arm64] http://ports.ubuntu.com/ focal-backports main restricted universe multiverse
EOF EOF
sudo mv aarch64.list /etc/apt/sources.list.d/
sudo dpkg --add-architecture arm64 sudo dpkg --add-architecture arm64
sudo apt update sudo apt update
sudo apt install build-essential bison flex m4 libgmp-dev libmpc-dev libmpfr-dev \ sudo apt install build-essential bison flex m4 libgmp-dev libmpc-dev libmpfr-dev \