diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3e58ed..24f653d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,12 +17,24 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Fix apt repositories + - name: Configure ARM64 apt sources run: | - sudo sed -i 's|http://archive.ubuntu.com|http://ports.ubuntu.com|g' /etc/apt/sources.list - sudo sed -i 's|http://security.ubuntu.com|http://ports.ubuntu.com|g' /etc/apt/sources.list - sudo rm -rf /var/lib/apt/lists/* - sudo apt update -o Acquire::AllowReleaseInfoChange=true + echo "Creating ubuntu.sources for ${matrix.arch}" + echo 'Types: deb' | sudo tee /etc/apt/sources.list.d/ubuntu.sources + echo 'URIs: http://ports.ubuntu.com/ubuntu-ports/' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo 'Suites: noble noble-updates noble-backports' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo 'Components: main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo 'Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo '' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo 'Types: deb' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo 'URIs: http://ports.ubuntu.com/ubuntu-ports/' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo 'Suites: noble-security' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo 'Components: main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + echo 'Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources + + - name: Update apt cache + run: | + sudo apt update -o Acquire::AllowReleaseInfoChange=true -y - name: Install dependencies run: |