Skip to content

Commit fc924e2

Browse files
committed
Merge branch 'f-gha' into b-pointer-arith
2 parents a5481a2 + 7d32fc3 commit fc924e2

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/check.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: example
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} ${{ matrix.config.msystem }}
16+
17+
defaults:
18+
run:
19+
shell: ${{ matrix.config.shell }}
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
config:
25+
- {os: macOS-latest, shell: bash, allow_fail: true }
26+
- {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW64, allow_fail: true }
27+
- {os: windows-latest, shell: 'msys2 {0}', msystem: MINGW32, allow_fail: true }
28+
- {os: ubuntu-22.04, shell: bash, allow_fail: false }
29+
- {os: ubuntu-20.04, shell: bash, allow_fail: false }
30+
- {os: ubuntu-18.04, shell: bash, allow_fail: false }
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- uses: msys2/setup-msys2@v2
36+
if: runner.os == 'Windows'
37+
with:
38+
msystem: ${{ matrix.config.msystem }}
39+
install: 'gcc make'
40+
41+
- name: Configure
42+
run: |
43+
mkdir build
44+
cd build
45+
../configure && rm config.log
46+
47+
- name: Make
48+
run: |
49+
cd build
50+
make
51+
52+
- name: Check
53+
run: |
54+
cd build
55+
make check || ( head -n 1000 *.log && ${{ matrix.config.allow_fail }} )

0 commit comments

Comments
 (0)