Skip to content

Commit

Permalink
Fix Github workflows
Browse files Browse the repository at this point in the history
- no longer build SELinux policies for CentOS7, Amazon Linux 2
- install pandoc from the "Rocky Powertools" repo
  • Loading branch information
hillu committed Dec 16, 2024
1 parent 2bce003 commit fac0d29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 45 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,10 @@ jobs:
steps:
- name: Prepare
run: |
dnf install 'dnf-command(config-manager)'
dnf config-manager --enable powertools
dnf -q -y update
dnf -q -y install gcc file libacl-devel clang
dnf -q -y install gcc file libacl-devel clang make pandoc
- name: Install Rust toolchain (stable)
uses: actions-rs/toolchain@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ jobs:
steps:
- name: Prepare
run: |
dnf install 'dnf-command(config-manager)'
dnf config-manager --enable powertools
dnf -q -y update
dnf -q -y install gcc file libacl-devel clang make pandoc
- name: Install Rust toolchain (stable)
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/selinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,6 @@ on:
- .github/workflows/selinux.yml

jobs:
build-el7:
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
runs-on: ubuntu-latest
container: centos:7
steps:
- name: Prepare
run: |
sed -i \
-e 's,^# *baseurl=http://mirror.centos.org/centos/,baseurl=https://vault.centos.org/centos/,g' \
-e 's,^mirrorlist=http://mirrorlist.centos.org,#&1,' \
/etc/yum.repos.d/*.repo
yum install -y selinux-policy-devel
- uses: actions/checkout@v2
- name: Build
run: |
make -C contrib/selinux AUDITD_VERSIONS=2
- name: Archive policy
uses: actions/upload-artifact@v3
with:
name: selinux-el7
path: contrib/selinux/laurel.pp

build-el8:
runs-on: ubuntu-latest
container: rockylinux:8
Expand Down Expand Up @@ -67,26 +43,6 @@ jobs:
name: selinux-el9
path: contrib/selinux/laurel.pp

build-al2:
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
runs-on: ubuntu-latest
container: amazonlinux:2
steps:
- name: Prepare
run: |
yum install -y selinux-policy-devel findutils tar
- uses: actions/checkout@v2
- name: Build
run: |
make -C contrib/selinux AUDITD_VERSIONS=2
- name: Archive policy
uses: actions/upload-artifact@v3
with:
name: selinux-al2
path: contrib/selinux/laurel.pp

build-al2023:
runs-on: ubuntu-latest
container: amazonlinux:2023
Expand Down

0 comments on commit fac0d29

Please sign in to comment.