diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2020-11-20 15:23:42 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2020-11-20 15:23:42 (GMT) |
commit | ea389baf3f559f8c876aa05e5d358f7b2f2e3a1a (patch) | |
tree | 44c4c80004e798e6e5b0f59e99a9a0b3a3b48f87 | |
parent | 59e8254d87e875d999e5b6ed667f418abdb94169 (diff) | |
download | tk-ea389baf3f559f8c876aa05e5d358f7b2f2e3a1a.zip tk-ea389baf3f559f8c876aa05e5d358f7b2f2e3a1a.tar.gz tk-ea389baf3f559f8c876aa05e5d358f7b2f2e3a1a.tar.bz2 |
Test build for Windows
-rw-r--r-- | .github/workflows/win-build.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml new file mode 100644 index 0000000..c05d404 --- /dev/null +++ b/.github/workflows/win-build.yml @@ -0,0 +1,43 @@ +name: Windows Build and Test +on: [push] +env: + ERROR_ON_FAILURES: 1 +jobs: + MSVC: + runs-on: windows-latest + defaults: + run: + shell: powershell + working-directory: win + # Using powershell means we need to explicitly stop on failure + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Init MSVC + uses: ilammy/msvc-dev-cmd@v1 + - name: Install Tcl + run: | + &choco install -y magicsplat-tcl-tk + if ($lastexitcode -ne 0) { + throw "choco exit code: $lastexitcode" + } + - name: Build + run: | + &nmake -f makefile.vc all + if ($lastexitcode -ne 0) { + throw "nmake exit code: $lastexitcode" + } + - name: Build Test Harness + run: | + &nmake -f makefile.vc tktest + if ($lastexitcode -ne 0) { + throw "nmake exit code: $lastexitcode" + } + - name: Run Tests + run: | + &nmake -f makefile.vc test + if ($lastexitcode -ne 0) { + throw "nmake exit code: $lastexitcode" + } + env: + CI_BUILD_WITH_MSVC: 1 |