summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2022-03-25 02:30:25 +0100
committerSebastian Pipping <sebastian@pipping.org>2022-03-25 14:58:25 +0100
commit0684e6e183725dc0f46ddab8ffbe6fc9d7394054 (patch)
tree9ee5609103f29b8b121e2d04aed9760e2bddbbc1
parentef31c8681eeae39ce23e4efd4cf718ae23403b79 (diff)
downloadlibexpat-git-0684e6e183725dc0f46ddab8ffbe6fc9d7394054.tar.gz
Actions: Resolve hardcoding of "bionic" for maintainability
-rw-r--r--.github/workflows/coverage.yml4
-rw-r--r--.github/workflows/linux.yml4
2 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 471a1066..e3972dde 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -45,8 +45,10 @@ jobs:
- uses: actions/checkout@v3
- name: Add Clang/LLVM repositories
run: |-
+ set -x
+ source /etc/os-release
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-14 main'
+ sudo add-apt-repository "deb http://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-14 main"
- name: Install build dependencies
# NOTE: Please note the version-specific ${PATH} extension for Clang in .travis.sh
run: |-
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index cbda93b2..8ddeb4f8 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -83,8 +83,10 @@ jobs:
- uses: actions/checkout@v3
- name: Add Clang/LLVM repositories
run: |-
+ set -x
+ source /etc/os-release
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-14 main'
+ sudo add-apt-repository "deb http://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-14 main"
- name: Install build dependencies
# NOTE: Please note the version-specific ${PATH} extension for Clang in .travis.sh
run: |-