-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow for Makefile
- Loading branch information
1 parent
7b2a263
commit 47e8798
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |