From 62c33479c8767e3c596cbd4f0b5cbf737c84f173 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 28 Nov 2020 02:30:59 +0300 Subject: initial commit --- .github/workflows/test.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/test.yml (limited to '.github/workflows/test.yml') 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 -- cgit v1.2.3