From 13a4c575989d9731cb1230d6b43bde8f7aa89620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 11:46:40 +0200 Subject: [PATCH 01/18] Add check action --- .github/workflows/check.yaml | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/check.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..f8d946d --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,46 @@ +on: + push: + branches: + - master + pull_request: + branches: + - master + +name: example + +jobs: + R-CMD-check: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + strategy: + fail-fast: false + matrix: + config: + - {os: macOS-latest} + - {os: windows-latest} + - {os: ubuntu-18.04} + - {os: ubuntu-16.04} + + steps: + - uses: actions/checkout@v2 + + - name: Configure + run: | + mkdir build + cd build + ../configure + shell: bash + + - name: Make + run: | + cd build + make + shell: bash + + - name: Check + run: | + cd build + make check + shell: bash From bd8134f18a940c5b2b2b7a0371a95c431e67b97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 11:50:07 +0200 Subject: [PATCH 02/18] Run on push for now --- .github/workflows/check.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index f8d946d..b2050e5 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -1,7 +1,5 @@ on: push: - branches: - - master pull_request: branches: - master From 5b683a38b3ab23e734f568bd3ee3eb02eb1173f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:06:10 +0200 Subject: [PATCH 03/18] Show log output --- .github/workflows/check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index b2050e5..c96ed25 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -28,7 +28,7 @@ jobs: run: | mkdir build cd build - ../configure + ../configure && rm config.log shell: bash - name: Make @@ -40,5 +40,5 @@ jobs: - name: Check run: | cd build - make check + make check || { head -n 1000 *.log && false } shell: bash From da39dc31f9449ec4e14f10342dfba8164a755f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:19:09 +0200 Subject: [PATCH 04/18] Install msys2 on Windows --- .github/workflows/check.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index c96ed25..f6cc444 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -16,29 +16,33 @@ jobs: fail-fast: false matrix: config: - - {os: macOS-latest} - - {os: windows-latest} - - {os: ubuntu-18.04} - - {os: ubuntu-16.04} + - {os: macOS-latest, shell: bash} + - {os: windows-latest, shell: mingw64} + - {os: windows-latest, shell: mingw32} + - {os: ubuntu-18.04, shell: bash} + - {os: ubuntu-16.04, shell: bash} steps: - uses: actions/checkout@v2 + - uses: msys2/setup-msys2@v2 + if: runner.os == 'Windows' + - name: Configure run: | mkdir build cd build ../configure && rm config.log - shell: bash + shell: $matrix.config.shell - name: Make run: | cd build make - shell: bash + shell: $matrix.config.shell - name: Check run: | cd build make check || { head -n 1000 *.log && false } - shell: bash + shell: $matrix.config.shell From c0bc5da1868a272f7c0516e5e23e48fa279d6d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:19:55 +0200 Subject: [PATCH 05/18] Syntax --- .github/workflows/check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index f6cc444..8e3b5e4 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -44,5 +44,5 @@ jobs: - name: Check run: | cd build - make check || { head -n 1000 *.log && false } + make check || ( head -n 1000 *.log && false ) shell: $matrix.config.shell From cd0f6a83b55f30a6d6849c9299d781eaf0b3bd09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:20:34 +0200 Subject: [PATCH 06/18] Brace --- .github/workflows/check.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 8e3b5e4..fc9cefc 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -33,16 +33,16 @@ jobs: mkdir build cd build ../configure && rm config.log - shell: $matrix.config.shell + shell: ${matrix.config.shell} - name: Make run: | cd build make - shell: $matrix.config.shell + shell: ${matrix.config.shell} - name: Check run: | cd build make check || ( head -n 1000 *.log && false ) - shell: $matrix.config.shell + shell: ${matrix.config.shell} From d10cee1dd9c9605c06fe73a56f67aaeb9fdd8969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:24:32 +0200 Subject: [PATCH 07/18] Brace-brace --- .github/workflows/check.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index fc9cefc..52d163c 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -17,8 +17,8 @@ jobs: matrix: config: - {os: macOS-latest, shell: bash} - - {os: windows-latest, shell: mingw64} - - {os: windows-latest, shell: mingw32} + - {os: windows-latest, shell: 'mingw64 {0}'} + - {os: windows-latest, shell: 'mingw32 {0}'} - {os: ubuntu-18.04, shell: bash} - {os: ubuntu-16.04, shell: bash} @@ -33,16 +33,16 @@ jobs: mkdir build cd build ../configure && rm config.log - shell: ${matrix.config.shell} + shell: ${{matrix.config.shell}} - name: Make run: | cd build make - shell: ${matrix.config.shell} + shell: ${{matrix.config.shell}} - name: Check run: | cd build make check || ( head -n 1000 *.log && false ) - shell: ${matrix.config.shell} + shell: ${{matrix.config.shell}} From 8d0e72af1631548ef94d530ce05b66748c9b5c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:30:29 +0200 Subject: [PATCH 08/18] Space --- .github/workflows/check.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 52d163c..8a667ec 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -33,16 +33,16 @@ jobs: mkdir build cd build ../configure && rm config.log - shell: ${{matrix.config.shell}} + shell: ${{ matrix.config.shell }} - name: Make run: | cd build make - shell: ${{matrix.config.shell}} + shell: ${{ matrix.config.shell }} - name: Check run: | cd build make check || ( head -n 1000 *.log && false ) - shell: ${{matrix.config.shell}} + shell: ${{ matrix.config.shell }} From eb0cfae43d7264a9c2e359878ce01f91e268c60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:32:23 +0200 Subject: [PATCH 09/18] Default shell --- .github/workflows/check.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 8a667ec..bae5c34 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -12,6 +12,10 @@ jobs: name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + defaults: + run: + shell: ${{ matrix.config.shell }} + strategy: fail-fast: false matrix: @@ -33,16 +37,13 @@ jobs: mkdir build cd build ../configure && rm config.log - shell: ${{ matrix.config.shell }} - name: Make run: | cd build make - shell: ${{ matrix.config.shell }} - name: Check run: | cd build make check || ( head -n 1000 *.log && false ) - shell: ${{ matrix.config.shell }} From d69665a9a3060fa73eeb04a013eed912b562e4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:35:00 +0200 Subject: [PATCH 10/18] msystem --- .github/workflows/check.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index bae5c34..5ff5641 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -21,8 +21,8 @@ jobs: matrix: config: - {os: macOS-latest, shell: bash} - - {os: windows-latest, shell: 'mingw64 {0}'} - - {os: windows-latest, shell: 'mingw32 {0}'} + - {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW64 } + - {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW32 } - {os: ubuntu-18.04, shell: bash} - {os: ubuntu-16.04, shell: bash} @@ -31,6 +31,8 @@ jobs: - uses: msys2/setup-msys2@v2 if: runner.os == 'Windows' + with: + msystem: ${{ matrix.config.msystem }} - name: Configure run: | From 6efc4eb794101692e60955441d168a7855474599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:36:23 +0200 Subject: [PATCH 11/18] Fix name --- .github/workflows/check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 5ff5641..fedd245 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -10,7 +10,7 @@ jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + name: ${{ matrix.config.os }} ${{ matrix.config.msystem }} defaults: run: From 26e9f060ad40bf2c18ec8467d25ac84d645bc7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:37:20 +0200 Subject: [PATCH 12/18] Install gcc --- .github/workflows/check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index fedd245..3362b6a 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -33,6 +33,7 @@ jobs: if: runner.os == 'Windows' with: msystem: ${{ matrix.config.msystem }} + install: 'gcc' - name: Configure run: | From 0de6828c5b76334b59c40aa1f5c216f3607e99ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 12:40:26 +0200 Subject: [PATCH 13/18] Install make --- .github/workflows/check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 3362b6a..4b7dbe5 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -33,7 +33,7 @@ jobs: if: runner.os == 'Windows' with: msystem: ${{ matrix.config.msystem }} - install: 'gcc' + install: 'gcc make' - name: Configure run: | From c704fe98f1f534d09fdad4be06cb18b9e18900cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 14:18:04 +0200 Subject: [PATCH 14/18] allow_fail --- .github/workflows/check.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 4b7dbe5..ec536a0 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -20,11 +20,11 @@ jobs: fail-fast: false matrix: config: - - {os: macOS-latest, shell: bash} - - {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW64 } - - {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW32 } - - {os: ubuntu-18.04, shell: bash} - - {os: ubuntu-16.04, shell: bash} + - {os: macOS-latest, shell: bash, allow_fail: true } + - {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW64, allow_fail: true } + - {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW32, allow_fail: true } + - {os: ubuntu-18.04, shell: bash, allow_fail: false } + - {os: ubuntu-16.04, shell: bash, allow_fail: false } steps: - uses: actions/checkout@v2 @@ -49,4 +49,4 @@ jobs: - name: Check run: | cd build - make check || ( head -n 1000 *.log && false ) + make check || ( head -n 1000 *.log && ${{ matrix.config.allow_fail }} ) From 5183ee325e175501e38eea1d520800aef4097bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 14:36:54 +0200 Subject: [PATCH 15/18] Bump From 625983ae1ddfb47022344fdc8a5e935361c434dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 30 Aug 2020 14:49:16 +0200 Subject: [PATCH 16/18] Check on branch only --- .github/workflows/check.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index ec536a0..666aec4 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -1,5 +1,7 @@ on: push: + branches: + - master pull_request: branches: - master From 7d32fc32c4d3b9bef980af084ec182c8f702b022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Tue, 31 Jan 2023 05:49:56 +0100 Subject: [PATCH 17/18] Update Ubuntu versions --- .github/workflows/check.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 666aec4..926dbee 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -25,8 +25,9 @@ jobs: - {os: macOS-latest, shell: bash, allow_fail: true } - {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW64, allow_fail: true } - {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW32, allow_fail: true } + - {os: ubuntu-22.04, shell: bash, allow_fail: false } + - {os: ubuntu-20.04, shell: bash, allow_fail: false } - {os: ubuntu-18.04, shell: bash, allow_fail: false } - - {os: ubuntu-16.04, shell: bash, allow_fail: false } steps: - uses: actions/checkout@v2 From 9682b505317e5dc998ffea134115c66940613580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Tue, 31 Jan 2023 06:13:16 +0100 Subject: [PATCH 18/18] Support main branch --- .github/workflows/check.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 926dbee..9f5ed68 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -2,9 +2,11 @@ on: push: branches: - master + - main pull_request: branches: - master + - main name: example