feat: ubuntu-2204 (#52)

* feat: ubuntu-2204
* remove unnecessary git-lfs install
This commit is contained in:
Ryan
2022-04-21 22:29:27 +02:00
committed by GitHub
parent 5d10b5ed1a
commit 8a28983c20
2 changed files with 3 additions and 7 deletions
+2
View File
@@ -42,6 +42,7 @@ jobs:
- linux/amd64,linux/arm64,linux/armhf
TAG:
- latest
- 22.04
- 20.04
- 18.04
steps:
@@ -211,6 +212,7 @@ jobs:
matrix:
TAG:
- latest
- 22.04
- 20.04
- 18.04
PLATFORMS:
+1 -7
View File
@@ -75,7 +75,7 @@ apt-get install -y git-lfs
LSB_OS_VERSION="${VERSION_ID//\./}"
echo "LSB_OS_VERSION=${LSB_OS_VERSION}" | tee -a "/etc/environment"
wget -qO "/imagegeneration/toolset.json" "https://raw.githubusercontent.com/actions/virtual-environments/main/images/linux/toolsets/toolset-${LSB_OS_VERSION}.json"
wget -qO "/imagegeneration/toolset.json" "https://raw.githubusercontent.com/actions/virtual-environments/main/images/linux/toolsets/toolset-${LSB_OS_VERSION}.json" || echo "File not available"
wget -qO "/imagegeneration/LICENSE" "https://raw.githubusercontent.com/actions/virtual-environments/main/LICENSE"
if [ "$(uname -m)" = x86_64 ]; then
@@ -83,12 +83,6 @@ if [ "$(uname -m)" = x86_64 ]; then
chmod +x "/usr/bin/jq"
fi
if [[ "${VERSION_ID}" == "16.04" ]]; then
printf 'git-lfs not available for Xenial'
else
apt-get -yq install --no-install-recommends --no-install-suggests git-lfs
fi
printf "\n\t🐋 Updated apt lists and upgraded packages 🐋\t\n"
printf "\n\t🐋 Creating ~/.ssh and adding 'github.com' 🐋\t\n"