subsurface/.github/workflows/windows.yml
Dirk Hohndel aff54e17e5 GitHub Actions: post releases
This so far just works on push and hopefullt pull requests, not for tags
and therefore actual releases.

In order not to conflict with the binaries from Travis, I changed the
name to "ci-release" instead of "continuous".

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-10-18 20:46:01 -07:00

48 lines
1.5 KiB
YAML

name: Windows
on: push
jobs:
buildInContainer:
runs-on: ubuntu-latest
container:
image: docker://dirkhh/mxe-build-container:0.9
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/windows-in-container-build.sh 2>&1 | tee build.log
grep "Built target installer" build.log
- name: create CI release
uses: ./.github/actions/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
REF: ${{ github.ref }}
COMMIT: ${{ github.sha }}
BIN1: ./subsurface-installer.exe
BIN2: ./subsurface.exe
BIN3: ./subsurface.exe.debug
BIN4: ./smtk2ssrf-installer.exe
BIN5: ./smtk2ssrf.exe