From faec667ff9ee5e9587b1db8f41e0702b2f27460e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 6 Dec 2021 09:49:28 -0700 Subject: [PATCH] ci: install config manager on fedora --- .github/workflows/gen_fedora33.yml | 6 ++++++ .github/workflows/gen_fedora33_continuous.yml | 10 ++++++++++ .github/workflows/gen_fedora33_tag.yml | 6 ++++++ .github/workflows/gen_fedora34.yml | 6 ++++++ .github/workflows/gen_fedora34_continuous.yml | 10 ++++++++++ .github/workflows/gen_fedora34_tag.yml | 6 ++++++ .github/workflows/gen_fedora35.yml | 6 ++++++ .github/workflows/gen_fedora35_continuous.yml | 10 ++++++++++ .github/workflows/gen_fedora35_tag.yml | 6 ++++++ ci/generate-workflows.py | 5 +---- 10 files changed, 67 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gen_fedora33.yml b/.github/workflows/gen_fedora33.yml index a1aa3818f..ec92e860e 100644 --- a/.github/workflows/gen_fedora33.yml +++ b/.github/workflows/gen_fedora33.yml @@ -19,6 +19,12 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:33" steps: + - name: "Install config manager" + shell: bash + run: "dnf install -y 'dnf-command(config-manager)'" + - name: "Enable PowerTools" + shell: bash + run: "dnf config-manager --set-enabled powertools" - name: "Enable GH CLI repo" shell: bash run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo" diff --git a/.github/workflows/gen_fedora33_continuous.yml b/.github/workflows/gen_fedora33_continuous.yml index 922c15372..9bf17a837 100644 --- a/.github/workflows/gen_fedora33_continuous.yml +++ b/.github/workflows/gen_fedora33_continuous.yml @@ -21,6 +21,16 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:33" steps: + - name: "Install config manager" + shell: bash + run: | + export BUILD_REASON=Schedule + dnf install -y 'dnf-command(config-manager)' + - name: "Enable PowerTools" + shell: bash + run: | + export BUILD_REASON=Schedule + dnf config-manager --set-enabled powertools - name: "Enable GH CLI repo" shell: bash run: | diff --git a/.github/workflows/gen_fedora33_tag.yml b/.github/workflows/gen_fedora33_tag.yml index dda72f5fb..50f7c39be 100644 --- a/.github/workflows/gen_fedora33_tag.yml +++ b/.github/workflows/gen_fedora33_tag.yml @@ -10,6 +10,12 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:33" steps: + - name: "Install config manager" + shell: bash + run: "dnf install -y 'dnf-command(config-manager)'" + - name: "Enable PowerTools" + shell: bash + run: "dnf config-manager --set-enabled powertools" - name: "Enable GH CLI repo" shell: bash run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo" diff --git a/.github/workflows/gen_fedora34.yml b/.github/workflows/gen_fedora34.yml index f00d3ec54..4f818f2cf 100644 --- a/.github/workflows/gen_fedora34.yml +++ b/.github/workflows/gen_fedora34.yml @@ -19,6 +19,12 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:34" steps: + - name: "Install config manager" + shell: bash + run: "dnf install -y 'dnf-command(config-manager)'" + - name: "Enable PowerTools" + shell: bash + run: "dnf config-manager --set-enabled powertools" - name: "Enable GH CLI repo" shell: bash run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo" diff --git a/.github/workflows/gen_fedora34_continuous.yml b/.github/workflows/gen_fedora34_continuous.yml index c6ec82097..c348d968f 100644 --- a/.github/workflows/gen_fedora34_continuous.yml +++ b/.github/workflows/gen_fedora34_continuous.yml @@ -21,6 +21,16 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:34" steps: + - name: "Install config manager" + shell: bash + run: | + export BUILD_REASON=Schedule + dnf install -y 'dnf-command(config-manager)' + - name: "Enable PowerTools" + shell: bash + run: | + export BUILD_REASON=Schedule + dnf config-manager --set-enabled powertools - name: "Enable GH CLI repo" shell: bash run: | diff --git a/.github/workflows/gen_fedora34_tag.yml b/.github/workflows/gen_fedora34_tag.yml index d57abf54d..762c81143 100644 --- a/.github/workflows/gen_fedora34_tag.yml +++ b/.github/workflows/gen_fedora34_tag.yml @@ -10,6 +10,12 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:34" steps: + - name: "Install config manager" + shell: bash + run: "dnf install -y 'dnf-command(config-manager)'" + - name: "Enable PowerTools" + shell: bash + run: "dnf config-manager --set-enabled powertools" - name: "Enable GH CLI repo" shell: bash run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo" diff --git a/.github/workflows/gen_fedora35.yml b/.github/workflows/gen_fedora35.yml index ae9ad4833..74c249e35 100644 --- a/.github/workflows/gen_fedora35.yml +++ b/.github/workflows/gen_fedora35.yml @@ -19,6 +19,12 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:35" steps: + - name: "Install config manager" + shell: bash + run: "dnf install -y 'dnf-command(config-manager)'" + - name: "Enable PowerTools" + shell: bash + run: "dnf config-manager --set-enabled powertools" - name: "Enable GH CLI repo" shell: bash run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo" diff --git a/.github/workflows/gen_fedora35_continuous.yml b/.github/workflows/gen_fedora35_continuous.yml index 283315f48..b424d34bc 100644 --- a/.github/workflows/gen_fedora35_continuous.yml +++ b/.github/workflows/gen_fedora35_continuous.yml @@ -21,6 +21,16 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:35" steps: + - name: "Install config manager" + shell: bash + run: | + export BUILD_REASON=Schedule + dnf install -y 'dnf-command(config-manager)' + - name: "Enable PowerTools" + shell: bash + run: | + export BUILD_REASON=Schedule + dnf config-manager --set-enabled powertools - name: "Enable GH CLI repo" shell: bash run: | diff --git a/.github/workflows/gen_fedora35_tag.yml b/.github/workflows/gen_fedora35_tag.yml index ec52e52fc..fa68bfedb 100644 --- a/.github/workflows/gen_fedora35_tag.yml +++ b/.github/workflows/gen_fedora35_tag.yml @@ -10,6 +10,12 @@ jobs: runs-on: "ubuntu-latest" container: "fedora:35" steps: + - name: "Install config manager" + shell: bash + run: "dnf install -y 'dnf-command(config-manager)'" + - name: "Enable PowerTools" + shell: bash + run: "dnf config-manager --set-enabled powertools" - name: "Enable GH CLI repo" shell: bash run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo" diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index 8b9dc98a2..055b227bd 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -508,7 +508,7 @@ cargo build --all --release""", steps += [RunStep("Install GH CLI", f"{sudo} apt install gh")] if self.container: - if self.container == "centos:8": + if ("fedora" in self.container) or ("centos" in self.container): steps += [ RunStep( "Install config manager", @@ -518,9 +518,6 @@ cargo build --all --release""", "Enable PowerTools", "dnf config-manager --set-enabled powertools", ), - ] - if ("fedora" in self.container) or ("centos" in self.container): - steps += [ RunStep( "Enable GH CLI repo", "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo",