@@ -41,47 +41,51 @@ jobs:
41
41
make -j4
42
42
popd
43
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
44
+ build-macos :
45
+ name : Build on MacOS X Latest
46
+ runs-on : macos-latest
47
+ steps :
48
+ - uses : actions/checkout@v2
49
+ - name : Install Deps
50
+ run : |
51
+ brew install jq
52
+ brew install qt5
53
+ brew install asciidoc
54
+ brew install pkg-config
55
+ brew install doxygen
56
+ brew install opendbx
57
+ brew install popt
58
+ brew install swig
59
+ brew install upx
60
+ brew install libxmlsec1
61
+ npm install -g appdmg
62
+ echo "/usr/local/opt/qt/bin" >> $GITHUB_PATH
63
+ echo "Qt5_DIR=/usr/local/opt/qt5/lib/cmake/Qt5" >> $GITHUB_ENV
64
+ - name : Build OpenSCAP
65
+ run : |
66
+ git clone --depth 1 https://github.com/openscap/openscap.git
67
+ pushd openscap/build
68
+ cmake -DENABLE_PROBES=FALSE ../
69
+ make -j4
70
+ make install
71
+ popd
72
+ - name : Build OSX Image
73
+ run : |
74
+ chmod +x ./build-for-osx.sh
75
+ ./build-for-osx.sh
76
+ REL_TAG=`curl -s "https://github.com/ComplianceAsCode/content/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}'`
77
+ REL_TAG_NUM=`echo ${REL_TAG} | cut -d"v" -f2`
78
+ DWN_LINK=https://github.com/ComplianceAsCode/content/releases/download/v0.1.63/scap-security-guide-0.1.63.zip
79
+ if [ -z "${DWN_LINK}" ]; then echo 'Could not get the ZIP URL! It is empty!'; exit 1; fi
80
+ wget "${DWN_LINK}" -O ssg.zip
81
+ 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/
82
+ cd build-osx && bash osx-create-dmg.sh
83
+ - name : Upload OSX Image
84
+ uses : actions/upload-artifact@v2
85
+ with :
86
+ name : scap-workbench-1.2.1.dmg
87
+ path : build-osx/scap-workbench-1.2.1.dmg
88
+
85
89
# We don't do automatic releases, do we?
86
90
# - name: Release
87
91
# uses: softprops/action-gh-release@v1
0 commit comments