mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
c1e7cd1428
Even on platforms that don't have the new git version, yet. And using the convoluted way to create an environment variable that should point to our checked out tree in the GitHub Action. The more obvious ways have resulted in failed builds for obscure reasons. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: Windows
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
buildWindows:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: docker://subsurface/mxe-build-container:2.2
|
|
|
|
steps:
|
|
- name: checkout sources
|
|
uses: actions/checkout@v1
|
|
|
|
- name: get other dependencies
|
|
env:
|
|
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
|
run: |
|
|
echo "Running script to install additional dependancies into container"
|
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
|
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
|