From d881093524f82b7c62590dbc0c719a304db4391a Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Fri, 20 Dec 2024 20:12:03 +0100 Subject: [PATCH] Install go-toolkit to fulfill build requirements for RPM --- .github/workflows/Release.yml | 28 ++++++++++++++++++++++++---- .github/workflows/runonce.yml | 28 ++++++++++++++++++++++++---- 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 0029f37..b08f703 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -46,7 +46,12 @@ jobs: # with: # go-version: 'stable' - name: Setup Golang - run: dnf --assumeyes --disableplugin=subscription-manager install go-toolkit + run: | + dnf --assumeyes --disableplugin=subscription-manager install \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/go-toolset-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-bin-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-src-1.22.9-1.module_el8.10.0+3938+8c723e16.noarch.rpm - name: RPM build MetricCollector id: rpmbuild @@ -117,7 +122,12 @@ jobs: # with: # go-version: 'stable' - name: Setup Golang - run: dnf --assumeyes --disableplugin=subscription-manager install go-toolkit + run: | + dnf --assumeyes --disableplugin=subscription-manager install \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/go-toolset-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-bin-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-src-1.22.7-2.el9_5.noarch.rpm - name: RPM build MetricCollector id: rpmbuild @@ -185,7 +195,12 @@ jobs: # with: # go-version: 'stable' - name: Setup Golang - run: dnf --assumeyes --disableplugin=subscription-manager install go-toolkit + run: | + dnf --assumeyes --disableplugin=subscription-manager install \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/go-toolset-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-bin-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-src-1.22.9-1.module_el8.10.0+3938+8c723e16.noarch.rpm - name: RPM build MetricCollector id: rpmbuild @@ -234,7 +249,12 @@ jobs: # with: # go-version: 'stable' - name: Setup Golang - run: dnf --assumeyes --disableplugin=subscription-manager install go-toolkit + run: | + dnf --assumeyes --disableplugin=subscription-manager install \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/go-toolset-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-bin-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-src-1.22.7-2.el9_5.noarch.rpm - name: RPM build MetricCollector id: rpmbuild diff --git a/.github/workflows/runonce.yml b/.github/workflows/runonce.yml index e4a27d6..869e294 100644 --- a/.github/workflows/runonce.yml +++ b/.github/workflows/runonce.yml @@ -120,7 +120,12 @@ jobs: # with: # go-version: 'stable' - name: Setup Golang - run: dnf --assumeyes --disableplugin=subscription-manager install go-toolkit + run: | + dnf --assumeyes --disableplugin=subscription-manager install \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/go-toolset-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-bin-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-src-1.22.9-1.module_el8.10.0+3938+8c723e16.noarch.rpm - name: RPM build MetricCollector id: rpmbuild @@ -160,7 +165,12 @@ jobs: # with: # go-version: 'stable' - name: Setup Golang - run: dnf --assumeyes --disableplugin=subscription-manager install go-toolkit + run: | + dnf --assumeyes --disableplugin=subscription-manager install \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/go-toolset-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-bin-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-src-1.22.7-2.el9_5.noarch.rpm - name: RPM build MetricCollector id: rpmbuild @@ -198,7 +208,12 @@ jobs: # with: # go-version: 'stable' - name: Setup Golang - run: dnf --assumeyes --disableplugin=subscription-manager install go-toolkit + run: | + dnf --assumeyes --disableplugin=subscription-manager install \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/go-toolset-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-bin-1.22.9-1.module_el8.10.0+3938+8c723e16.x86_64.rpm \ + https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/Packages/golang-src-1.22.9-1.module_el8.10.0+3938+8c723e16.noarch.rpm - name: RPM build MetricCollector id: rpmbuild @@ -235,7 +250,12 @@ jobs: # with: # go-version: 'stable' - name: Setup Golang - run: dnf --assumeyes --disableplugin=subscription-manager install go-toolkit + run: | + dnf --assumeyes --disableplugin=subscription-manager install \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/go-toolset-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-bin-1.22.7-2.el9_5.x86_64.rpm \ + https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/golang-src-1.22.7-2.el9_5.noarch.rpm - name: RPM build MetricCollector id: rpmbuild