From 505d2e5f6a497fe563b0dcbddfddb840d06b70a9 Mon Sep 17 00:00:00 2001 From: Jason Foral Date: Fri, 27 Sep 2024 11:54:08 -0400 Subject: [PATCH] Build unknown-linux on Ubuntu 20.04 --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8506ab7d..bfe846f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,8 +24,10 @@ jobs: # Ubuntu - target: aarch64-unknown-linux-gnu os: ubuntu-latest + image: ubuntu:20.04 - target: x86_64-unknown-linux-gnu os: ubuntu-latest + image: ubuntu:20.04 # Mac OS - target: aarch64-apple-darwin os: macos-latest @@ -35,7 +37,22 @@ jobs: - target: x86_64-pc-windows-msvc os: windows-latest runs-on: ${{ matrix.os }} + container: + image: ${{ matrix.image || '' }} + options: --privileged steps: + - name: Configure container + if: startsWith(matrix.os, 'ubuntu') + run: | + apt-get update + apt-get --no-install-recommends install -y build-essential ca-certificates curl git jq wget zip + mkdir -p -m 755 /etc/apt/keyrings + wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null + chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg + echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null + apt-get update + apt-get install gh -y + git config --global --add safe.directory $GITHUB_WORKSPACE - uses: actions/checkout@v4 - name: Install Stable + Rustfmt + Clippy uses: dtolnay/rust-toolchain@stable