Skip to content

Commit

Permalink
Add GitHub Actions workflow for Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasostling committed Dec 18, 2024
1 parent 7b2a263 commit 47e8798
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Documentation

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up R environment
uses: r-lib/actions/setup-r@v2

- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install -y texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-xetex
- name: Install R packages
run: |
Rscript -e 'install.packages(c("rmarkdown", "tools"))'
- name: Install Sweave (if not included)
run: |
Rscript -e 'install.packages("utils")'
- name: Run Makefile
run: |
make all

0 comments on commit 47e8798

Please sign in to comment.