Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit e3483fc

Browse files
committed
GH Actions: Unify and add Fedora container-based job
1 parent 1fc6def commit e3483fc

File tree

3 files changed

+92
-88
lines changed

3 files changed

+92
-88
lines changed

.github/workflows/build.yaml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Gating
2+
on:
3+
push:
4+
branches: [ '*' ]
5+
pull_request:
6+
branches: [ master, v1-2 ]
7+
jobs:
8+
build-ubuntu:
9+
name: Build on Ubuntu Latest
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install Deps
13+
uses: mstksg/get-package@master
14+
with:
15+
apt-get: build-essential openssh-client libopenscap-dev libqt5xmlpatterns5-dev ssh-askpass asciidoc libpolkit-agent-1-0
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Build
19+
run: |
20+
mkdir -p build
21+
pushd build
22+
cmake ..
23+
make -j4
24+
popd
25+
26+
build-fedora:
27+
name: Build on Fedora 33 (Container)
28+
runs-on: ubuntu-latest
29+
container:
30+
image: fedora:33
31+
steps:
32+
- name: Install Deps
33+
run: dnf install -y cmake gcc-c++ openssh-clients util-linux openscap-devel qt5-qtbase-devel qt5-qtxmlpatterns-devel openssh-askpass asciidoc polkit-libs
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
- name: Build
37+
run: |
38+
mkdir -p build
39+
pushd build
40+
cmake ..
41+
make -j4
42+
popd
43+
44+
# Disabled
45+
# build-macos:
46+
# name: Build on MacOS X Latest
47+
# runs-on: macos-latest
48+
# steps:
49+
# - uses: actions/checkout@v2
50+
# - name: Install Deps
51+
# run: |
52+
# brew install jq
53+
# brew install qt5
54+
# brew install asciidoc
55+
# brew install pkg-config
56+
# brew install doxygen
57+
# brew install opendbx
58+
# brew install popt
59+
# brew install swig
60+
# brew install upx
61+
# brew install libxmlsec1
62+
# npm install -g appdmg
63+
# echo "/usr/local/opt/qt/bin" >> $GITHUB_PATH
64+
# echo "Qt5_DIR=/usr/local/opt/qt5/lib/cmake/Qt5" >> $GITHUB_ENV
65+
# - name: Build OpenSCAP
66+
# run: |
67+
# git clone --depth 1 https://github.com/openscap/openscap.git
68+
# pushd openscap/build
69+
# cmake -DENABLE_PROBES=FALSE ../
70+
# make -j4
71+
# make install
72+
# popd
73+
# Broken
74+
# - name: Build OSX Image
75+
# run: |
76+
# chmod +x ./build-for-osx.sh
77+
# ./build-for-osx.sh
78+
# REL_TAG=`curl -s "https://github.com/ComplianceAsCode/content/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}'`
79+
# REL_TAG_NUM=`echo ${REL_TAG} | cut -d"v" -f2`
80+
# DWN_LINK=https://github.com/ComplianceAsCode/content/releases/download/${REL_TAG}/scap-security-guide-${REL_TAG_NUM}.zip
81+
# if [ -z "${DWN_LINK}" ]; then echo 'Could not get the ZIP URL! It is empty!'; exit 1; fi
82+
# wget "${DWN_LINK}" -O ssg.zip
83+
# mkdir -p `pwd`/build-osx/scap-workbench.app/Contents/Resources/ssg/ && unzip ssg.zip && cp -a scap-security-guide-*/* `pwd`/build-osx/scap-workbench.app/Contents/Resources/ssg/
84+
# cd build-osx && bash osx-create-dmg.sh
85+
# We don't do automatic releases, do we?
86+
# - name: Release
87+
# uses: softprops/action-gh-release@v1
88+
# if: startsWith(github.ref, 'refs/tags/')
89+
# with:
90+
# files: build-osx/scap-workbench-${{ steps.get_version.outputs.VERSION }}.dmg
91+
# env:
92+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/ubuntu.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)