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