-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.67 KB
/
R-CMD-check-cross.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
57
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: R-CMD-check-crossplatform
jobs:
R-CMD-check:
runs-on: ubuntu-latest
name: Check (${{ matrix.config.platform }})
strategy:
fail-fast: false
matrix:
config:
- { platform: linux/386 }
- { platform: linux/arm/v5 }
- { platform: linux/arm/v7 }
- { platform: linux/mips64le }
- { platform: linux/ppc64le }
- { platform: linux/riscv64 }
- { platform: linux/s390x }
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: docker/setup-qemu-action@master
- name: Check with clang-18
uses: addnab/docker-run-action@v3
with:
image: andrjohns/quickjsr-cross-tests
options: -v ${{ github.workspace }}:/quickjsr --platform=${{ matrix.config.platform }}
run: |
R CMD build /quickjsr
echo "CC=clang-18" >> /etc/R/Makeconf
echo "CXX=clang++-18" >> /etc/R/Makeconf
MAKEFLAGS="-j4" R CMD check --as-cran --no-manual QuickJSR_*.tar.gz
- name: Check with gcc-13
uses: addnab/docker-run-action@v3
with:
image: andrjohns/quickjsr-cross-tests
options: -v ${{ github.workspace }}:/quickjsr --platform=${{ matrix.config.platform }}
run: |
R CMD build /quickjsr
echo "CC=gcc-13" >> /etc/R/Makeconf
echo "CXX=g++-13" >> /etc/R/Makeconf
MAKEFLAGS="-j4" R CMD check --as-cran --no-manual QuickJSR_*.tar.gz