-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 2.23 KB
/
cran-fedora-check.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
58
59
60
# https://github.com/albersonmiranda/fio/blob/dev/.github/workflows/Rust-fail-check.yaml
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches: [main, master]
name: Rust-check
permissions: read-all
jobs:
no-install:
runs-on: ubuntu-latest
container:
image: fedora:40
steps:
- uses: actions/checkout@v4
- name: Install Fedora dependencies
run: |
sudo dnf install -y libxml2-devel libcurl-devel harfbuzz-devel fribidi-devel openssl-devel freetype-devel libpng-devel libtiff-devel libjpeg-devel qpdf xz devscripts glibc-langpack-en pandoc
- name: Setup R
run: |
sudo dnf install -y R
# install R packages
R -e 'install.packages(c("remotes", "rcmdcheck", "emoji", "Rdpack", "readxl", "clipr", "fs", "miniUI", "shiny", "knitr", "rmarkdown", "spelling", "microbenchmark", "leontief", "ggplot2", "writexl", "testthat"), repos = "http://cloud.r-project.org")'
- name: Build package
run: |
R CMD build .
msrv-lower:
runs-on: ubuntu-latest
container:
image: fedora:40
steps:
- uses: actions/checkout@v4
- name: Install Fedora dependencies
run: |
sudo dnf install -y libxml2-devel libcurl-devel harfbuzz-devel fribidi-devel openssl-devel freetype-devel libpng-devel libtiff-devel libjpeg-devel qpdf xz devscripts glibc-langpack-en pandoc
- name: Install and set Rust toolchain to 1.66.0
run: |
# download and install rust
curl https://sh.rustup.rs -sSf | sh -s -- -y
# add cargo to PATH
. "$HOME/.cargo/env"
# set default toolchain
rustup default 1.66
- name: Setup R
run: |
sudo dnf install -y R
# install R packages
R -e 'install.packages(c("remotes", "rcmdcheck", "emoji", "Rdpack", "readxl", "clipr", "fs", "miniUI", "shiny", "knitr", "rmarkdown", "spelling", "microbenchmark", "leontief", "ggplot2", "writexl", "testthat"), repos = "http://cloud.r-project.org")'
- name: Build package
run: |
R CMD build .