Skip to content

Commit 26c48ad

Browse files
Add -lbcrypt (#156)
1 parent 175509c commit 26c48ad

File tree

4 files changed

+23
-67
lines changed

4 files changed

+23
-67
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 20 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,55 @@
11
on:
22
push:
3-
branches:
4-
- main
5-
- master
3+
branches: [main, master]
64
pull_request:
7-
branches:
8-
- main
9-
- master
5+
branches: [main, master]
106

117
name: R-CMD-check
128

139
jobs:
1410
R-CMD-check:
1511
runs-on: ${{ matrix.config.os }}
1612

17-
name: ${{ matrix.config.os }} (${{ matrix.config.r }} / ${{ matrix.config.rust-version }})
13+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
1814

1915
strategy:
2016
fail-fast: false
2117
matrix:
2218
config:
2319
- {os: windows-latest, r: 'release', rust-version: 'stable-msvc'}
24-
- {os: macOS-latest, r: 'release', rust-version: 'stable'}
25-
- {os: ubuntu-20.04, r: 'release', rust-version: 'stable', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
26-
- {os: ubuntu-20.04, r: 'devel', rust-version: 'stable', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
20+
- {os: macOS-latest, r: 'release', rust-version: 'stable' }
21+
- {os: ubuntu-20.04, r: 'release', rust-version: 'stable' }
22+
- {os: ubuntu-20.04, r: 'devel', rust-version: 'stable' }
2723

2824
env:
29-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
30-
RSPM: ${{ matrix.config.rspm }}
25+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
26+
R_KEEP_PKG_SOURCE: yes
3127

3228
steps:
3329
- uses: actions/checkout@v2
34-
30+
31+
- uses: r-lib/actions/setup-pandoc@v1
32+
3533
- name: Set up Rust
3634
uses: actions-rs/toolchain@v1
3735
with:
3836
toolchain: ${{ matrix.config.rust-version }}
3937
default: true
4038

41-
- name: Set up R
42-
uses: r-lib/actions/setup-r@v1
43-
with:
44-
r-version: ${{ matrix.config.r }}
45-
windows-path-include-mingw: false
46-
47-
- name: Set up pandoc
48-
uses: r-lib/actions/setup-pandoc@v1
49-
50-
- name: Query dependencies
51-
run: |
52-
install.packages('remotes')
53-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
54-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
55-
shell: Rscript {0}
56-
57-
- name: Cache R packages (not Windows)
58-
if: startsWith(runner.os, 'Windows') == false
59-
uses: actions/cache@v2
60-
with:
61-
path: ${{ env.R_LIBS_USER }}
62-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
63-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
64-
6539
- name: Configure Windows
6640
if: startsWith(runner.os, 'Windows')
6741
run: |
6842
rustup target add x86_64-pc-windows-gnu
6943
rustup target add i686-pc-windows-gnu
70-
shell: pwsh
71-
72-
- name: Configure Linux
73-
if: startsWith(runner.os, 'Linux')
74-
run: |
75-
while read -r cmd
76-
do
77-
eval sudo $cmd
78-
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
7944
45+
- uses: r-lib/actions/setup-r@v1
46+
with:
47+
r-version: ${{ matrix.config.r }}
48+
http-user-agent: ${{ matrix.config.http-user-agent }}
49+
use-public-rspm: true
8050

81-
- name: Install dependencies
82-
run: |
83-
remotes::install_deps(dependencies = TRUE)
84-
remotes::install_cran("rcmdcheck")
85-
shell: Rscript {0}
86-
87-
- name: Check
88-
id: rcmd_check
89-
env:
90-
_R_CHECK_CRAN_INCOMING_REMOTE_: false
91-
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--force-multiarch"), error_on = "warning", check_dir = "check")
92-
shell: Rscript {0}
93-
94-
- name: Upload check results
95-
if: failure()
96-
uses: actions/upload-artifact@main
51+
- uses: r-lib/actions/setup-r-dependencies@v1
9752
with:
98-
name: ${{ runner.os }}-r${{ matrix.config.r }}-rust${{ matrix.config.rust-version }}-results
99-
path: check
53+
extra-packages: rcmdcheck
54+
55+
- uses: r-lib/actions/check-r-package@v1

inst/templates/Makevars.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TOOLCHAIN = stable-msvc
33
TARGET_DIR = ./rust/target
44
LIBDIR = $(TARGET_DIR)/$(TARGET)/release
55
STATLIB = $(LIBDIR)/lib{{{pkg_name}}}.a
6-
PKG_LIBS = -L$(LIBDIR) -l{{{pkg_name}}} -lws2_32 -ladvapi32 -luserenv
6+
PKG_LIBS = -L$(LIBDIR) -l{{{pkg_name}}} -lws2_32 -ladvapi32 -luserenv -lbcrypt
77

88
all: C_clean
99

tests/data/test-knitr-engine-source-01.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ The quick brown fox **jumps over** the lazy dog.
8181
The quick *brown fox* jumps over the lazy dog."
8282
8383
md_to_html(md_text)
84-
```
84+
```

tests/testthat/_snaps/use_extendr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
TARGET_DIR = ./rust/target
6363
LIBDIR = $(TARGET_DIR)/$(TARGET)/release
6464
STATLIB = $(LIBDIR)/libtestpkg.a
65-
PKG_LIBS = -L$(LIBDIR) -ltestpkg -lws2_32 -ladvapi32 -luserenv
65+
PKG_LIBS = -L$(LIBDIR) -ltestpkg -lws2_32 -ladvapi32 -luserenv -lbcrypt
6666
6767
all: C_clean
6868

0 commit comments

Comments
 (0)