aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-01 02:50:52 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-01 02:50:52 +0300
commitd98ac8bb082ec3282d332d5484c6e38e46b12317 (patch)
treea81327fe953e711dada0f3624e4ef9a01ed4abdd /.github/workflows
parentcode style (diff)
downloadsetup-gcc-d98ac8bb082ec3282d332d5484c6e38e46b12317.tar.gz
setup-gcc-d98ac8bb082ec3282d332d5484c6e38e46b12317.zip
add example foo.cpp
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e5118cc..bf87d6b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -43,6 +43,10 @@ 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
with:
@@ -55,4 +59,21 @@ jobs:
platform: '${{ matrix.platform }}'
cygwin: '${{ matrix.cygwin }}'
- # I'm not really sure as to how to properly verify that it worked :-(
+ - name: Build foo.exe
+ run: |
+ $flags = @()
+ if ('${{ matrix.platform }}' -eq 'x86') {
+ $flags += '-m32'
+ }
+ $flags += @(
+ '-x', 'c++',
+ '-std=c++14',
+ '-o', 'foo',
+ 'foo.cpp',
+ '-lstdc++'
+ )
+ if ('${{ runner.os }}' -eq 'Linux') {
+ $flags += '-lpthread'
+ }
+ & g++ $flags
+ & (Join-Path . foo)