aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..99c3ca7
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,49 @@
+name: Test
+
+on:
+ push:
+ pull_request:
+ schedule:
+ # Weekly, at 5:45 AM on Friday (somewhat randomly chosen).
+ - cron: '45 5 * * 5'
+ workflow_dispatch:
+
+jobs:
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [windows-2019]
+ platform: [x86, x64]
+
+ include:
+ - {os: windows-2019, name: Windows Server 2019}
+
+ runs-on: '${{ matrix.os }}'
+
+ name: '${{ matrix.name }} / ${{ matrix.platform }}'
+
+ defaults:
+ run:
+ shell: pwsh
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Set up Cygwin
+ id: setup
+ uses: ./
+ with:
+ platform: '${{ matrix.platform }}'
+ install-dir: C:\cg
+ packages: cmake gcc
+
+ - name: Run bash
+ run: |
+ $output = C:\cg\bin\bash.exe --login -c 'echo foobar'
+ $($output -eq 'foobar') -or $(throw $output)
+
+ - name: Run cmake
+ run: |
+ C:\cg\bin\cmake.exe --version