Skip to content

Commit

Permalink
Merge branch 'master' of github.com:JuliaInterop/RCall.jl into compat…
Browse files Browse the repository at this point in the history
…helper/new_version/2023-03-15-00-43-31-892-00257834843
  • Loading branch information
palday committed Apr 14, 2023
2 parents afd5837 + b4afc92 commit 0752aa4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches: [master]
Expand Down Expand Up @@ -35,17 +38,10 @@ jobs:
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/cache@v1
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- run: echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
if: matrix.os == 'ubuntu-latest'
- uses: julia-actions/julia-buildpkg@v1
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Documentation

concurrency:
group: docs-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches:
Expand All @@ -12,13 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- run: echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- uses: julia-actions/julia-buildpkg@latest
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Make docs
run: julia --project=docs/ docs/make.jl
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.SSH_KEY }}
11 changes: 6 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using RCall
using Test

# before RCall does anything
const R_PPSTACKTOP_INITIAL = unsafe_load(cglobal((:R_PPStackTop, RCall.libR), Int))
@info "" R_PPSTACKTOP_INITIAL

hd = homedir()

if Sys.iswindows()
Expand Down Expand Up @@ -61,8 +65,5 @@ end

@info "" RCall.conda_provided_r

if !Sys.iswindows() # https://github.com/JuliaInterop/RCall.jl/pull/462
if !RCall.conda_provided_r # this test will fail for the Conda-provided R
@test unsafe_load(cglobal((:R_PPStackTop, RCall.libR), Int)) == 0
end
end
# make sure we're back where we started
@test unsafe_load(cglobal((:R_PPStackTop, RCall.libR), Int)) == R_PPSTACKTOP_INITIAL

0 comments on commit 0752aa4

Please sign in to comment.