Skip to content

Commit

Permalink
github: drop CentOS builds for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kmroz committed Feb 11, 2022
1 parent 07d56b5 commit 35a76c5
Showing 1 changed file with 78 additions and 80 deletions.
158 changes: 78 additions & 80 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,83 +84,84 @@ jobs:
name: deb-artifacts
path: dist

# Centos builder. For tags starting with 'v' only. Note that the actual release
# portion of this job (configured via .goreleaser-centos.yml) is disabled. Artifacts
# are built and uploaded for later use.
centos-build-test:
needs: build-test-vet
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
container: centos:7
steps:
-
name: Install Build Dependencies
run: |
yum -y install dnf-plugins-core
yum -y install epel-release
yum -y install libpcap-devel
yum -y install git
yum -y install gcc
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Start GPG Agent
run: eval $(gpg-agent --daemon -s)
-
name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
-
name: GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release -f ./.goreleaser-centos.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
-
name: Test Install
run: yum -y install ./dist/*.rpm
-
name: Test Run
run: nfr -h
-
name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: centos-artifacts
path: dist
# DISABLE CENTOS BUILDS UNTIL CENTOS STREAM HAS DOCKER IMAGES
# # Centos builder. For tags starting with 'v' only. Note that the actual release
# # portion of this job (configured via .goreleaser-centos.yml) is disabled. Artifacts
# # are built and uploaded for later use.
# centos-build-test:
# needs: build-test-vet
# if: startsWith(github.ref, 'refs/tags/v')
# runs-on: ubuntu-latest
# container: centos:7
# steps:
# -
# name: Install Build Dependencies
# run: |
# yum -y install dnf-plugins-core
# yum -y install epel-release
# yum -y install libpcap-devel
# yum -y install git
# yum -y install gcc
# -
# name: Checkout
# uses: actions/checkout@v2
# -
# name: Set up Go
# uses: actions/setup-go@v2
# with:
# go-version: 1.16
# -
# name: Start GPG Agent
# run: eval $(gpg-agent --daemon -s)
# -
# name: Import GPG key
# id: import_gpg
# uses: crazy-max/ghaction-import-gpg@v3
# with:
# gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
# passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
# -
# name: GoReleaser
# uses: goreleaser/goreleaser-action@v2
# with:
# # either 'goreleaser' (default) or 'goreleaser-pro'
# distribution: goreleaser
# version: latest
# args: release -f ./.goreleaser-centos.yml
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
# -
# name: Test Install
# run: yum -y install ./dist/*.rpm
# -
# name: Test Run
# run: nfr -h
# -
# name: Upload Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: centos-artifacts
# path: dist

centos7-test:
needs: centos-build-test
runs-on: ubuntu-latest
container: centos:7
steps:
-
name: Download CentOS Artifacts
uses: actions/download-artifact@v2
with:
name: centos-artifacts
path: centos-artifacts
-
name: Test Install
run: yum -y install centos-artifacts/*.rpm
-
name: Test Run
run: nfr -h
# centos7-test:
# needs: centos-build-test
# runs-on: ubuntu-latest
# container: centos:7
# steps:
# -
# name: Download CentOS Artifacts
# uses: actions/download-artifact@v2
# with:
# name: centos-artifacts
# path: centos-artifacts
# -
# name: Test Install
# run: yum -y install centos-artifacts/*.rpm
# -
# name: Test Run
# run: nfr -h

# Windows builder. For tags starting with 'v' only. Note that the actual release
# portion of this job (configured via .goreleaser-win.yml) is disabled. Artifacts
Expand Down Expand Up @@ -209,7 +210,7 @@ jobs:

# The actual release job. Performs no actual build, save for generating a changelog.
release-artifacts:
needs: [debian-build-test, centos-build-test, windows-build, centos7-test]
needs: [debian-build-test, windows-build]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
Expand All @@ -221,16 +222,13 @@ jobs:
run: |
sudo mkdir rel
sudo mv deb-artifacts/*checksums* rel/
sudo mv centos-artifacts/*checksums* rel/
sudo mv win-artifacts/*checksums* rel/
-
# Copies signatures also.
name: Copy Packages and Archives
run: |
sudo mv deb-artifacts/*.tar.gz* rel/
sudo mv deb-artifacts/*.deb* rel/
sudo mv centos-artifacts/*.tar.gz* rel/
sudo mv centos-artifacts/*.rpm* rel/
sudo mv win-artifacts/*.tar.gz* rel/
-
# Needed because the below checkout destroys /home/runner/work/nfr, and the
Expand Down

0 comments on commit 35a76c5

Please sign in to comment.