Nightly builds with OVAL 5.11 #2
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
name: Nightly builds with OVAL 5.11 | |
on: | |
schedule: | |
# Run daily at 03:00 | |
- cron: "0 3 * * *" | |
jobs: | |
nightly-fedora: | |
name: Nightly build on Fedora Latest (Container) | |
runs-on: ubuntu-latest | |
container: | |
image: fedora:latest | |
steps: | |
- name: Install Dependencies | |
run: dnf install -y cmake ninja-build openscap-utils python3-pyyaml python3-jinja2 python3-pytest ansible-lint libxslt ansible | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure | |
run: cmake -G Ninja .. | |
working-directory: ./build | |
- name: Build All | |
run: ninja -j2 all | |
working-directory: ./build | |
- name: Build ZIP | |
run: ninja -j2 zipfile | |
working-directory: ./build | |
- name: Test | |
run: ctest -j2 --output-on-failure -E linkchecker | |
working-directory: ./build | |
- name: Build Package Source | |
run: ninja -j2 package_source | |
working-directory: ./build | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Nightly Build | |
path: | | |
build/zipfile/scap-security-guide-*.zip | |
build/zipfile/scap-security-guide-*.zip.sha512 |