Skip to content

Commit

Permalink
Build unknown-linux on Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonforal committed Sep 27, 2024
1 parent 64e2ced commit 505d2e5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 505d2e5

Please sign in to comment.