Skip to content

Commit

Permalink
Add sudo
Browse files Browse the repository at this point in the history
I assumed that `sudo` wouldn't be needed on GitHub Actions, but I appear to be wrong.
  • Loading branch information
martincostello committed Nov 28, 2023
1 parent 36b378d commit 290201e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ jobs:
if: runner.os == 'Linux'
shell: bash
run: |
dpkg --add-architecture arm64
bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
sudo dpkg --add-architecture arm64
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
EOF'
sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
apt update
apt install --yes clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
sudo apt update
sudo apt install --yes clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down

0 comments on commit 290201e

Please sign in to comment.