Skip to content

Commit eb21da7

Browse files
committed
fix system dependencies and ubuntu version
1 parent 3945b7e commit eb21da7

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/run_visium_qc.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: R Restore and Run
1+
name: Visium Quality Control
22

33
on:
44
push:
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
r-restore:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-noble
1212

1313
env:
1414
RENV_PATHS_ROOT: ~/.local/share/renv # persistent cache location
@@ -20,6 +20,12 @@ jobs:
2020
- name: Set up R
2121
uses: r-lib/actions/setup-r@v2
2222

23+
- name: Install system dependencies for R packages
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y build-essential libcurl4-openssl-dev libssl-dev libxml2-dev libgit2-dev
27+
shell: bash
28+
2329
- name: Cache R packages (renv)
2430
uses: actions/cache@v4
2531
with:
@@ -28,6 +34,9 @@ jobs:
2834
restore-keys: |
2935
${{ runner.os }}-renv-
3036
37+
- name: Set repositories
38+
run: Rscript ubuntu.R
39+
3140
- name: Restore environment from renv.lock
3241
run: |
3342
install.packages("renv", repos = "https://cloud.r-project.org")

ubuntu.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Configure BiocManager to use Posit Package Manager
2+
options(BioC_mirror = "https://packagemanager.posit.co/bioconductor/latest")
3+
4+
# Configure BiocManager to load its configuration from Package Manager
5+
options(BIOCONDUCTOR_CONFIG_FILE = "https://packagemanager.posit.co/bioconductor/latest/config.yaml")
6+
7+
# Set the Bioconductor version to prevent defaulting to a newer version
8+
Sys.setenv("R_BIOC_VERSION" = "3.22")
9+
10+
# Configure a CRAN snapshot compatible with Bioconductor 3.22
11+
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/noble/latest"))

0 commit comments

Comments
 (0)