Skip to content

Commit

Permalink
trying to run build in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
larskotthoff committed Jan 15, 2025
1 parent a68e50f commit 38af34b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7,594 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/build-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,18 @@ name: build-book
jobs:
build-book:
runs-on: ubuntu-latest

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
container:
image: mlrorgdocker/mlr3-book
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

- id: setup
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.2'

- uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true

- name: Install headless chromium
run: quarto tools install chromium

- name: Cache R packages
uses: actions/cache@v4
with:
path: ~/.cache/R/renv
key: ${{ runner.os }}-r-${{ steps.setup.outputs.installed-r-version }}-lock-${{ hashFiles('book/renv.lock') }}
restore-keys: ${{ runner.os }}-r-${{ steps.setup.outputs.installed-r-version }}-lock-

- name: Install System Dependencies
uses: mlr-org/actions/renv-system-dependencies@v1
with:
path: 'book/renv.lock'

- name: Restore renv environment
run: |
cd book
R -q -e 'options(Ncpus = 2); install.packages("renv", repos = "cloud.r-project.org"); renv::restore()'
- name: Cache OpenML
uses: actions/cache@v4
id: openml-cache
Expand Down
5 changes: 0 additions & 5 deletions book/.Rprofile

This file was deleted.

Loading

0 comments on commit 38af34b

Please sign in to comment.