aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-11-28 02:30:59 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-11-28 03:00:13 +0300
commit62c33479c8767e3c596cbd4f0b5cbf737c84f173 (patch)
tree795a554d9132cd4c43e056b404dae7b9c7945ace /.github
downloadsetup-cygwin-62c33479c8767e3c596cbd4f0b5cbf737c84f173.tar.gz
setup-cygwin-62c33479c8767e3c596cbd4f0b5cbf737c84f173.zip
initial commit
Diffstat (limited to '')
-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