-
Notifications
You must be signed in to change notification settings - Fork 263
57 lines (47 loc) · 1.33 KB
/
check.yaml
File metadata and controls
57 lines (47 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
name: example
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} ${{ matrix.config.msystem }}
defaults:
run:
shell: ${{ matrix.config.shell }}
strategy:
fail-fast: false
matrix:
config:
- {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 }
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
if: runner.os == 'Windows'
with:
msystem: ${{ matrix.config.msystem }}
install: 'gcc make'
- name: Configure
run: |
mkdir build
cd build
../configure && rm config.log
- name: Make
run: |
cd build
make
- name: Check
run: |
cd build
make check || ( head -n 1000 *.log && ${{ matrix.config.allow_fail }} )