-
Notifications
You must be signed in to change notification settings - Fork 14
56 lines (46 loc) · 1.18 KB
/
ci.yaml
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
# Run CI for R using https://eddelbuettel.github.io/r-ci/
name: ci
on:
push:
pull_request:
env:
_R_CHECK_FORCE_SUGGESTS_: "false"
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
include:
#- name: gcc-7
# cxx: g++-7
# cc: gcc-7
#- name: gcc-8
# cxx: g++-8
# cc: gcc-8
#- name: gcc-9
# cxx: g++-9
# cc: gcc-9
- name: gcc-10
cxx: g++-10
cc: gcc-10
- name: gcc-11
cxx: g++-11
cc: gcc-11
- name: gcc-12
cxx: g++-12
cc: gcc-12
steps:
- uses: actions/checkout@v4
- name: Setup
uses: eddelbuettel/github-actions/r-ci-setup@master
- name: Bootstrap
run: ./run.sh bootstrap
- name: Compiler
run: |
./run.sh install_aptget ${{ matrix.cxx }}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.cc }} 60 --slave /usr/bin/g++ g++ /usr/bin/${{matrix.cxx }}
g++ --version
- name: Dependencies
run: ./run.sh install_all
- name: Test
run: ./run.sh run_tests