2019-10-16 18:31:29 +00:00
|
|
|
name: Windows
|
2019-10-26 01:04:01 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-10-16 18:31:29 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildInContainer:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2020-06-11 07:52:30 +00:00
|
|
|
image: docker://subsurface/mxe-build-container:1.1
|
2019-10-16 18:31:29 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout sources
|
2019-10-17 23:12:42 +00:00
|
|
|
uses: actions/checkout@v1
|
2019-10-16 18:31:29 +00:00
|
|
|
|
|
|
|
- name: get other dependencies
|
|
|
|
run: |
|
2020-05-30 11:21:22 +00:00
|
|
|
echo "Running script to install additional dependancies into container"
|
2020-06-11 07:52:30 +00:00
|
|
|
cd /win
|
|
|
|
ln -s /__w/subsurface/subsurface .
|
2020-05-30 11:21:22 +00:00
|
|
|
bash -x subsurface/.github/workflows/scripts/windows-container-prep.sh 2>&1 | tee pre-build.log
|
2019-10-16 18:31:29 +00:00
|
|
|
- name: run build
|
|
|
|
run: |
|
|
|
|
cd /win
|
2019-10-18 16:25:14 +00:00
|
|
|
bash -x subsurface/.github/workflows/scripts/windows-in-container-build.sh 2>&1 | tee build.log
|
2019-10-16 18:31:29 +00:00
|
|
|
grep "Built target installer" build.log
|
|
|
|
|
2019-10-27 02:28:30 +00:00
|
|
|
- name: prepare PR artifacts
|
2019-10-26 02:07:03 +00:00
|
|
|
if: github.event_name == 'pull_request'
|
2019-10-25 20:53:48 +00:00
|
|
|
run: |
|
2019-10-27 02:28:30 +00:00
|
|
|
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
|