subsurface/.github/workflows/windows.yml
Paul Buxton 68b651e494 build-system/mxe: use the new container image
[Dirk Hohndel: switched back to our docker hub repo]

Signed-off-by: Paul Buxton <paulbuxton.mail@googlemail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-06-25 11:00:51 -07:00

43 lines
1.2 KiB
YAML

name: Windows
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
buildInContainer:
runs-on: ubuntu-latest
container:
image: docker://subsurface/mxe-build-container:1.1
steps:
- name: checkout sources
uses: actions/checkout@v1
- name: get other dependencies
run: |
echo "Running script to install additional dependancies into container"
cd /win
ln -s /__w/subsurface/subsurface .
bash -x subsurface/.github/workflows/scripts/windows-container-prep.sh 2>&1 | tee pre-build.log
- name: run build
run: |
cd /win
bash -x subsurface/.github/workflows/scripts/windows-in-container-build.sh 2>&1 | tee build.log
grep "Built target installer" build.log
- name: prepare PR artifacts
if: github.event_name == 'pull_request'
run: |
mkdir -p Windows-artifacts
mv ./subsurface-installer.exe ./subsurface.exe ./subsurface.exe.debug ./smtk2ssrf-installer.exe ./smtk2ssrf.exe Windows-artifacts
- name: PR artifacts
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@master
with:
name: Windows-artifacts
path: Windows-artifacts