Skip to content

Commit

Permalink
ci: use the go snap instead of the deb
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Schvezov <[email protected]>
  • Loading branch information
sergiusens committed Oct 4, 2024
1 parent 60ef969 commit 34eff9b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ jobs:
echo "::group::apt install"
sudo apt install -y ninja-build cmake scons \
autoconf automake autopoint gcc git gperf help2man libtool texinfo
# Remove newer go and install regular version for 20.04
sudo apt install -y golang
# Install go from the Snap Store
go_job=$(sudo snap install --no-wait --classic go)
# Install RPM dependencies for RPM tests
sudo apt install rpm
# Install poetry. From pipx on focal, from apt on newer systems.
Expand All @@ -96,6 +96,7 @@ jobs:
else
sudo apt-get install -y python3-poetry
fi
snap watch $go_job
# Ensure we don't have dotnet installed, to properly test dotnet-deps
# Based on https://github.com/actions/runner-images/blob/main/images/linux/scripts/installers/dotnetcore-sdk.sh
sudo apt remove -y dotnet-* || true
Expand Down Expand Up @@ -159,11 +160,12 @@ jobs:
echo "::group::snap install"
sudo snap install --no-wait core20
sudo snap install chisel --channel latest/candidate --no-wait
sudo snap install go --classic --no-wait
echo "::endgroup::"
echo "::group::apt install"
sudo apt install -y ninja-build cmake scons qt5-qmake p7zip \
autoconf automake autopoint gcc git gperf help2man libtool texinfo \
curl findutils pkg-config golang rpm \
curl findutils pkg-config rpm \
findutils python3-dev python3-venv
echo "::endgroup::"
echo "::group::dotnet removal"
Expand Down

0 comments on commit 34eff9b

Please sign in to comment.