Skip to content

Temporarily build on ubuntu-22.4 only #48

Temporarily build on ubuntu-22.4 only

Temporarily build on ubuntu-22.4 only #48

Workflow file for this run

name: Build, Test and Publish
on:
push:
branches-ignore:
- trunk
- svn2git-cache
pull_request:
jobs:
build:
strategy:
matrix:
python-version: ['3.x'] # 2.x is supported but EOL on GitHub Actions
os: [ubuntu-22.04] # [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12, windows-2019] # TODO fails to find VC windows-2022
log: [yes, no]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Brew Dependencies
run: |
brew install scons mingw-w64 zlib
curl --retry 9 -sLo cppunit.rb "https://sourceforge.net/p/nsis/code/HEAD/tree/web-scripts/trunk/cppunit.rb?format=raw"
brew install -s --formula cppunit.rb
if: startsWith(matrix.os, 'macos')
- name: Apt Dependencies
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -y scons g++-mingw-w64-i686 binutils-mingw-w64-i686 zlib1g-dev libcppunit-dev
if: startsWith(matrix.os, 'ubuntu')
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
if: startsWith(matrix.os, 'windows')
- name: Choco Dependencies
run: |
curl --retry 9 -sLo cppunit-msvc-1.12.1.exe https://downloads.sourceforge.net/project/cppunit-msvc/cppunit-msvc-1.12.1.exe
$arguments = "/S /D=$HOME\cppunit"
Start-Process ./cppunit-msvc-1.12.1.exe $arguments -NoNewWindow -Wait
pip install scons
choco install zip
# microsoft removed the download of htmlhelp.exe -- https://chocolatey.org/packages/html-help-workshop#comment-5245282888
#choco install html-help-workshop
echo "${Env:ProgramFiles(x86)}\HTML Help Workshop" >> $Env:GITHUB_PATH
if: startsWith(matrix.os, 'windows')
- name: Zlib Dependency
run: |
curl --retry 9 -sLo $HOME/zlib.zip "https://downloads.sourceforge.net/project/libpng/zlib/1.2.8/zlib128-dll.zip?r=&ts=1403402496&use_mirror=hivelocity"
mkdir $HOME/zlib
unzip $HOME/zlib.zip -d $HOME/zlib
- name: Build
run: |
scons ZLIB_W32=$HOME/zlib SKIPUTILS="NSIS Menu" NSIS_CONFIG_LOG=${{ matrix.log }} test dist-zip
if: "!startsWith(matrix.os, 'windows')"
- name: Build (Windows)
run: |
scons ZLIB_W32=$HOME/zlib SKIPUTILS="NSIS Menu" NSIS_CONFIG_LOG=${{ matrix.log }} APPEND_CPPPATH=$HOME/cppunit/include APPEND_LIBPATH=$HOME/cppunit/lib/release-win32 test dist
if: startsWith(matrix.os, 'windows')
- name: Config Errors
if: ${{ failure() }}
run: cat config.log