summaryrefslogtreecommitdiffstats
path: root/.github
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
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')
-rw-r--r--.github/workflows/linux-build.yml2
-rw-r--r--.github/workflows/win-build.yml37
2 files changed, 37 insertions, 2 deletions
diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml
index 04420dd..a2b2a64 100644
--- a/.github/workflows/linux-build.yml
+++ b/.github/workflows/linux-build.yml
@@ -1,7 +1,7 @@
name: Linux Build and Test
on: [push]
jobs:
- build:
+ gcc:
runs-on: ubuntu-latest
defaults:
run:
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