mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-05 00:21:29 +00:00
c1bfded4a7
Add a GitHub action that builds the docker image to run builds for the Windows (MXE) version of Subsurface. Also update the MXE image Dockerfile to the latest version of MXE, and add a patch to use a current version of mdbtools. Configure GitHub actions that do not build docker images to not trigger on changes to the contents of `scripts/docker/`. Signed-off-by: Michael Keller <github@ike.ch>
18 lines
443 B
Bash
Executable file
18 lines
443 B
Bash
Executable file
#!/bin/bash
|
|
set -x
|
|
set -e
|
|
|
|
# known good MXE sha
|
|
MXE_SHA="c0bfefc57a00fdf6cb5278263e21a478e47b0bf5"
|
|
SCRIPTPATH=$(dirname $0)
|
|
|
|
# version of the docker image
|
|
VERSION=3.0.1
|
|
|
|
pushd $SCRIPTPATH
|
|
|
|
# we use the 'experimental' --squash argument to significantly reduce the size of the massively huge
|
|
# Docker container this produces
|
|
docker build -t subsurface/mxe-build-container:$VERSION --build-arg=mxe_sha=$MXE_SHA -f Dockerfile .
|
|
docker images
|
|
popd
|