Fix CentOS7 setup (6) #73
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
paths: | |
- contrib/selinux/* | |
- .github/workflows/selinux.yml | |
pull_request: | |
paths: | |
- contrib/selinux/* | |
- .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 | |
steps: | |
- name: Prepare | |
run: | | |
dnf install -y selinux-policy-devel findutils | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make -C contrib/selinux AUDITD_VERSIONS=3 | |
- name: Archive policy | |
uses: actions/upload-artifact@v3 | |
with: | |
name: selinux-el8 | |
path: contrib/selinux/laurel.pp | |
build-el9: | |
runs-on: ubuntu-latest | |
container: rockylinux:9 | |
steps: | |
- name: Prepare | |
run: | | |
dnf install -y selinux-policy-devel findutils | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make -C contrib/selinux AUDITD_VERSIONS=3 | |
- name: Archive policy | |
uses: actions/upload-artifact@v3 | |
with: | |
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 | |
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=3 | |
- name: Archive policy | |
uses: actions/upload-artifact@v3 | |
with: | |
name: selinux-al2023 | |
path: contrib/selinux/laurel.pp | |
build-bookworm: | |
runs-on: ubuntu-latest | |
container: debian:bookworm-slim | |
steps: | |
- name: Prepare | |
run: | | |
apt-get -qqy update | |
apt-get -qqy install selinux-policy-dev | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make -C contrib/selinux AUDITD_VERSIONS=3 | |
- name: Archive policy | |
uses: actions/upload-artifact@v3 | |
with: | |
name: selinux-bookworm | |
path: contrib/selinux/laurel.pp | |
build-jammy: | |
runs-on: ubuntu-latest | |
container: ubuntu:jammy | |
steps: | |
- name: Prepare | |
run: | | |
apt-get -qqy update | |
apt-get -qqy install selinux-policy-dev | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make -C contrib/selinux AUDITD_VERSIONS=3 | |
- name: Archive policy | |
uses: actions/upload-artifact@v3 | |
with: | |
name: selinux-jammy | |
path: contrib/selinux/laurel.pp |