Nightly builds with OVAL 5.11 #1332
This file contains hidden or 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-pip python3-devel gcc-c++ ansible-lint libxslt ansible python3-setuptools | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4 | |
| - name: Install python deps | |
| run: pip install -r requirements-base.txt -r test-requirements.txt | |
| - 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@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v4 | |
| with: | |
| name: Nightly Build | |
| path: | | |
| build/zipfile/scap-security-guide-*.zip | |
| build/zipfile/scap-security-guide-*.zip.sha512 |