Update runonce.yml to download golang from official sources

This commit is contained in:
Thomas Gruber 2024-11-14 16:31:51 +01:00 committed by GitHub
parent c96021c7cc
commit 51dda886f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,14 +88,11 @@ jobs:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
# Use dnf to install build dependencies # See: https://github.com/marketplace/actions/setup-go-environment
- name: Install build dependencies - name: Setup Golang
run: | uses: actions/setup-go@v4
dnf --assumeyes install \ with:
http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/golang-1.20.6-2.module_el8+658+f14b2092.x86_64.rpm \ go-version: '1.21'
http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/golang-bin-1.20.6-2.module_el8+658+f14b2092.x86_64.rpm \
http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/golang-src-1.20.6-2.module_el8+658+f14b2092.noarch.rpm \
http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/go-toolset-1.20.6-1.module_el8+602+8bb8a8d6.x86_64.rpm
- name: RPM build MetricCollector - name: RPM build MetricCollector
id: rpmbuild id: rpmbuild
@ -126,14 +123,11 @@ jobs:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
# Use dnf to install build dependencies # See: https://github.com/marketplace/actions/setup-go-environment
- name: Install build dependencies - name: Setup Golang
run: | uses: actions/setup-go@v4
dnf --assumeyes --disableplugin=subscription-manager install \ with:
http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/golang-1.20.6-2.module_el8+658+f14b2092.x86_64.rpm \ go-version: '1.21'
http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/golang-bin-1.20.6-2.module_el8+658+f14b2092.x86_64.rpm \
http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/golang-src-1.20.6-2.module_el8+658+f14b2092.noarch.rpm \
http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/go-toolset-1.20.6-1.module_el8+602+8bb8a8d6.x86_64.rpm
- name: RPM build MetricCollector - name: RPM build MetricCollector
id: rpmbuild id: rpmbuild
@ -163,12 +157,11 @@ jobs:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
# Use official golang package # Use official golang package
- name: Install Golang # See: https://github.com/marketplace/actions/setup-go-environment
run: | - name: Setup Golang
wget -q https://go.dev/dl/go1.21.1.linux-amd64.tar.gz --output-document=- | \ uses: actions/setup-go@v4
tar --directory=/usr/local --extract --gzip with:
export PATH=/usr/local/go/bin:/usr/local/go/pkg/tool/linux_amd64:$PATH go-version: '1.21'
go version
- name: DEB build MetricCollector - name: DEB build MetricCollector
id: dpkg-build id: dpkg-build
run: | run: |