This commit is contained in:
Holger Obermaier 2022-03-01 13:25:15 +01:00
parent 311d316601
commit a9e0928d76

View File

@ -1,7 +1,7 @@
# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# Workflow name
name: Run Test
name: AlmaLinux 8.5 RPM build
# Run on event push
on: push
@ -9,21 +9,22 @@ on: push
jobs:
#
# Job build-1-16
# Build on AlmaLinux 8.5 using golang version 1.16
#
AlmaLinux-rpmbuild:
AlmaLinux-RPM-build:
runs-on: ubuntu-latest
container: almalinux:8.5
steps:
# Use dnf to install required dependencies
- name: Install dependencies
run: |
dnf --assumeyes group install "Development Tools" "RPM Development Tools"
dnf --assumeyes install wget
# See: https://github.com/marketplace/actions/checkout
# Checkout git repository and submodules
# fetch-depth must be 0 to use git describe
# See: https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@v2
with:
@ -44,7 +45,6 @@ jobs:
SRPM=~/rpmbuild/SRPMS/*.src.rpm
echo ::set-output name="SRPM::${SRPM}"
echo ::set-output name="RPM::${RPM}"
echo ::set-output name="rpm_content_type::application/octet-stream"
# See: https://github.com/actions/upload-artifact
- name: Save RPM as artifact