diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-16 11:31:29 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-18 20:46:01 -0700 |
commit | f099b22820f09ef04395e46d822b0fe2cbcfeb8d (patch) | |
tree | 4c4d9ee830e7518bc1dd5951a3c315d23aa988f6 /.github/workflows/windows.yml | |
parent | ef3d67be081545da4cf3c28497e0e96b3b1c350d (diff) | |
download | subsurface-f099b22820f09ef04395e46d822b0fe2cbcfeb8d.tar.gz |
GitHub Actions: build Windows binaries
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r-- | .github/workflows/windows.yml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 000000000..bb81e5b28 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,64 @@ +name: Windows +on: push + +jobs: + buildInContainer: + runs-on: ubuntu-latest + container: + image: docker://dirkhh/mxe-build-container:0.9 + + steps: + - name: checkout sources + run: | + cd /win + git clone git://github.com/${GITHUB_REPOSITORY} + cd subsurface + git checkout ${GITHUB_SHA} + git submodule init + git submodule update + + - name: get other dependencies + run: | + cd /win + apt-get install -y ca-certificates libtool + 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: publish Subsurface installer + uses: actions/upload-artifact@v1 + with: + name: subsurface-${{github.sha}}-installer.exe + path: ./subsurface-installer.exe # /${GITHUB_WORKSPACE}/ in the container is '.' here + + - name: publish Subsurface binary + uses: actions/upload-artifact@v1 + with: + name: subsurface-${{github.sha}}.exe + path: ./subsurface.exe # /${GITHUB_WORKSPACE}/ in the container is '.' here + + - name: publish Subsurface debug binary + uses: actions/upload-artifact@v1 + with: + name: subsurface-${{github.sha}}.exe.debug + path: ./subsurface.exe.debug # /${GITHUB_WORKSPACE}/ in the container is '.' here + + - name: publish smtk2ssrf installer + uses: actions/upload-artifact@v1 + with: + name: smtk2ssrf-${{github.sha}}-installer.exe + path: ./smtk2ssrf-installer.exe # /${GITHUB_WORKSPACE}/ in the container is '.' here + + - name: publish Subsurface installer + uses: actions/upload-artifact@v1 + with: + name: smtk2ssrf-${{github.sha}}.exe + path: ./subsurface.exe # /${GITHUB_WORKSPACE}/ in the container is '.' here |