diff --git a/.github/workflows/update_deps.yml b/.github/workflows/update_deps.yml new file mode 100644 index 000000000..4fa4eef8f --- /dev/null +++ b/.github/workflows/update_deps.yml @@ -0,0 +1,57 @@ +on: workflow_dispatch + +jobs: + install-packages: + runs-on: ${{ matrix.platform }} + env: + DEBIAN_FRONTEND: noninteractive + strategy: + # Failing fast breaks the Omnibus build cache because the job is + # interrupted abruptly, leaving behind index.lock files. + fail-fast: false + matrix: + platform: + # ARM-based + - amazonlinux2-arm64 + - centos9-arm64 + - debian10-arm64 + - debian11-arm64 + - fedora33-arm64 + - fedora34-arm64 + - fedora35-arm64 + - ubuntu1804-arm64 + - ubuntu2004-arm64 + + # x64-based + - amazonlinux2-x64 + - centos7-x64 + - centos8-x64 + - centos9-x64 + - debian10-x64 + - debian11-x64 + - fedora33-x64 + - fedora34-x64 + - fedora35-x64 + - ubuntu1804-x64 + - ubuntu2004-x64 + - opensuse15-x64 + steps: + - name: install llvm on suse-based + if: startsWith(matrix.platform, "opensuse") + run: | + zypper install -y -t llvm + - name: install llvm on redhat-based + if: > + startsWith(matrix.platform, "amazonlinux") || + startsWith(matrix.platform, "centos") || + startsWith(matrix.platform, "fedora") || + startsWith(matrix.platform, "fedora") + run: | + yum install -y llvm + - name: install llvm on debian-based + if: > + startsWith(matrix.platform, "debian") || + startsWith(matrix.platform, "ubuntu") + run: | + apt-get update + apt-get install -yq llvm