From dd7ad3f565401ec3f7ba2638b74e561bf485b650 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Sat, 9 Mar 2024 12:30:57 -0800 Subject: [PATCH] Update cygwin GitHub action * Brings over boilerplate from other actions * Remove CDash --- .github/workflows/{cwin.yml => cygwin.yml} | 24 +++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) rename .github/workflows/{cwin.yml => cygwin.yml} (60%) diff --git a/.github/workflows/cwin.yml b/.github/workflows/cygwin.yml similarity index 60% rename from .github/workflows/cwin.yml rename to .github/workflows/cygwin.yml index 63fd52e0c8..512cb8d9c9 100644 --- a/.github/workflows/cwin.yml +++ b/.github/workflows/cygwin.yml @@ -1,11 +1,26 @@ -name: cwin +name: cygwin on: + workflow_dispatch: push: + pull_request: branches: [ master ] + paths-ignore: + - '.github/CODEOWNERS' + - 'release_notes/**' + - 'COPYING' + - '**.md' + +permissions: + contents: read + +# Using concurrency to cancel any in-progress job or run +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} + cancel-in-progress: true jobs: - test: + cygwin-cmake: runs-on: windows-latest steps: - name: Set git to use LF @@ -26,7 +41,6 @@ jobs: which cmake cmake -G Ninja \ -D BUILD_SHARED_LIBS:BOOL=OFF \ - -D CTEST_DROP_SITE_INIT:STRING="my.cdash.org" \ - -D SITE:STRING=cwin .. - ctest -D Experimental + .. + ctest . -C Release -V shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'