Skip to content

Commit

Permalink
Add github actions to build the content for Debian (9, 10 and 11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedonno1337 committed Oct 14, 2021
1 parent 76e580f commit 183bcc0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,29 @@ jobs:
run: ctest -j2 --output-on-failure -E unique-stigids
working-directory: ./build

validate-debian:
name: Build, Test on Debian 10 (Container)
runs-on: ubuntu-latest
container:
image: debian:buster
steps:
- name: Update the package repository
run: apt-get update
- name: Install Deps
run: apt-get install -y ansible-lint bats check cmake expat libopenscap8 libxml2-utils ninja-build python3-github python3-jinja2 python3-pip python3-pytest python3-pytest-cov python3-yaml xsltproc
- name: Install deps python
run: pip3 install ruamel.yaml yamlpath
- name: Checkout
uses: actions/checkout@v2
- name: Build
env:
ADDITIONAL_CMAKE_OPTIONS: "-DSSG_ANSIBLE_PLAYBOOKS_PER_RULE_ENABLED=ON"
run: |-
./build_product debian9 debian10 debian11
- name: Test
working-directory: ./build
run: ctest -j2 --output-on-failure -E unique-stigids

validate-ubuntu:
name: Build, Test on Ubuntu 20.04
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 183bcc0

Please sign in to comment.