mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
d49647d288
Net net this has caused more problems than it solved. Too often binaries were missing or broken. Instead 'release equivalent' binaries are now consistently posted to downloads/test via a Webhook. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
53 lines
1.6 KiB
YAML
53 lines
1.6 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.0
|
|
|
|
steps:
|
|
- name: checkout sources
|
|
uses: actions/checkout@v1
|
|
|
|
- name: get other dependencies
|
|
run: |
|
|
echo "creating the link from /win/subsurface"
|
|
cd /win
|
|
ln -s /__w/subsurface/subsurface .
|
|
ls -l
|
|
ls -l subsurface/scripts
|
|
echo "installing missing container components"
|
|
apt-get install -y ca-certificates libtool
|
|
echo "downloading sources for fresh build"
|
|
bash subsurface/scripts/get-dep-lib.sh single . libzip
|
|
bash subsurface/scripts/get-dep-lib.sh single . hidapi
|
|
bash subsurface/scripts/get-dep-lib.sh single . googlemaps
|
|
bash subsurface/scripts/get-dep-lib.sh single . grantlee
|
|
bash subsurface/scripts/get-dep-lib.sh single . mdbtools
|
|
|
|
- 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
|