summaryrefslogtreecommitdiffstats
path: root/.github/workflows/win-build.yml
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2020-11-15 09:17:41 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2020-11-15 09:17:41 (GMT)
commit807ed7b13c7dc61b771929a4abbcaa6818c8fae6 (patch)
tree2e2f4a4eb6ea2218bad72426ec1a8d326e2c8e62 /.github/workflows/win-build.yml
parent3ef704b39c1f9ec4caf502f42325803d2e380f3a (diff)
downloadtcl-807ed7b13c7dc61b771929a4abbcaa6818c8fae6.zip
tcl-807ed7b13c7dc61b771929a4abbcaa6818c8fae6.tar.gz
tcl-807ed7b13c7dc61b771929a4abbcaa6818c8fae6.tar.bz2
Added MSYS/gcc build for Windows, renamed Linux build step
Diffstat (limited to '.github/workflows/win-build.yml')
-rw-r--r--.github/workflows/win-build.yml37
1 files changed, 36 insertions, 1 deletions
diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml
index 809003b..22d40be 100644
--- a/.github/workflows/win-build.yml
+++ b/.github/workflows/win-build.yml
@@ -1,7 +1,7 @@
name: Windows Build and Test
on: [push]
jobs:
- build:
+ MSVC:
runs-on: windows-latest
defaults:
run:
@@ -31,3 +31,38 @@ jobs:
if ($lastexitcode -ne 0) {
throw "nmake exit code: $lastexitcode"
}
+ env:
+ ERROR_ON_FAILURES: 1
+ MSYS-gcc:
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: bash
+ working-directory: win
+ strategy:
+ matrix:
+ config_options: [ "--disable-debug", "--enable-debug=mem" ]
+ # Using powershell means we need to explicitly stop on failure
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Install MSYS2 and Make
+ run: choco install msys2 make
+ - name: Prepare
+ run: |
+ touch tclStubInit.c tclOOStubInit.c
+ mkdir "${HOME}/install dir"
+ working-directory: generic
+ - name: Configure
+ run: |
+ ./configure ${CFGOPT} "--prefix=$HOME/install dir" || (cat config.log && exit 1)
+ env:
+ CFGOPT: --enable-64bit ${{ matrix.config_options }}
+ - name: Build
+ run: make all
+ - name: Build Test Harness
+ run: make tcltest
+ - name: Run Tests
+ run: make test
+ env:
+ ERROR_ON_FAILURES: 1