aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-07 14:12:06 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-08 16:50:46 +0300
commitf02baa76a573410483b23b2d52609d838ebdc359 (patch)
tree203607010e7c0f469b138e4d9b3bff63af783e9e
parentunified package mgmt routines (diff)
downloadsetup-mingw-f02baa76a573410483b23b2d52609d838ebdc359.tar.gz
setup-mingw-f02baa76a573410483b23b2d52609d838ebdc359.zip
workflows/test.yml: test Cygwin also
-rw-r--r--.github/workflows/test.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 97b70d8..dbbff56 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -13,14 +13,21 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-18.04, windows-2019, windows-2016]
platform: [x86, x64]
+ cygwin: [0, 1]
+ os: [ubuntu-18.04, windows-2019, windows-2016]
include:
# Prettier run names.
- {os: ubuntu-18.04, name: Ubuntu}
- {os: windows-2019, name: Windows Server 2019}
- {os: windows-2016, name: Windows Server 2016}
+ - {cygwin: 1, name: Cygwin}
+ exclude:
+ # No Cygwin on Ubuntu.
+ - {os: ubuntu-18.04, cygwin: 1}
+ # Cygwin is the same on Windows Server 2016 & 2019.
+ - {os: windows-2016, cygwin: 1}
runs-on: '${{ matrix.os }}'
@@ -34,15 +41,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
+ - name: Clean up PATH
+ uses: egor-tensin/cleanup-path@v1
+ if: runner.os == 'Windows'
+
+ - name: Install Cygwin
+ uses: egor-tensin/setup-cygwin@master
+ if: matrix.cygwin
+
- name: Set up MinGW
id: setup
uses: ./
with:
platform: '${{ matrix.platform }}'
+ cygwin: '${{ matrix.cygwin }}'
- name: Build foo.exe
run: |
- & '${{ steps.setup.outputs.gxx }}' -std=c++11 -o foo foo.cpp
+ $flags = '-std=c++11','-o','foo','foo.cpp'
+ & '${{ steps.setup.outputs.gxx }}' $flags
if ('${{ runner.os }}' -eq 'Windows') {
.\foo.exe
}