Try to set up CI with Rocky Linux 9

This commit is contained in:
Doncho N. Gunchev 2024-02-21 21:09:11 +02:00
parent 08548e7a56
commit bce45e0c3e
Signed by: dgunchev
GPG key ID: D30FD19F37E002A9

51
.github/workflows/makefile.yml vendored Normal file
View file

@ -0,0 +1,51 @@
name: Makefile CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
container: rockylinux:9
steps:
- name: Install needed packages
run: |
dnf -y install rpmdevtools make xz tar bash git
# one time fix to avoid permission problems later on
git config --global --add safe.directory "$GITHUB_WORKSPACE"
# Checks-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup RPM build environment
run: rpmdev-setuptree
- name: List all files here
run: ls -al
- name: Show GITHUB_WORKSPACE
run: echo "$GITHUB_WORKSPACE"
- name: List GITHUB_WORKSPACE
run: ls -al "$GITHUB_WORKSPACE"
- name: List all files here
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Show the Makefile help screen
run: make
- name: Create source distribution tar.xz
run: make dist
- name: Create RPM packages
run: make rpm
- name: Clean up
run: make clean