-
Notifications
You must be signed in to change notification settings - Fork 697
40 lines (40 loc) · 1.63 KB
/
nightly_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 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@65462800fd760344b1a7b4382951275a0abb4808 # v4
with:
name: Nightly Build
path: |
build/zipfile/scap-security-guide-*.zip
build/zipfile/scap-security-guide-*.zip.sha512