Skip to content

Commit

Permalink
Automated build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeksterslab committed Aug 19, 2023
1 parent 9c647ec commit e9e9edc
Show file tree
Hide file tree
Showing 138 changed files with 9,843 additions and 3,250 deletions.
16 changes: 1 addition & 15 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,19 @@
.*\.Rcheck$
.*\.Rproj$
.*\.sif$
.*\.tar\.gz$
.*\.tar\.xz$
.*\.tgz$
.*\.uuid$
.*\.yml$
^CITATION\.cff$
^LICENSE\.md$
^Makefile$
^README\.Rmd$
^README\.md$
^\.Rproj\.user$
^\.covrignore$
^\.data-.*$
^\.devcontainer$
^\.git.*$
^\.library$
^\.lintr$
^\.quarto$
^\.setup$
^\.sim$
^detritus$
^docs$
^index\.qmd$
^latex.*$
^pkgdown$
^scss$
^quarto$
^qmd$
^betaSandwich\.pdf$
^scripts$
^vignettes$
Empty file removed .covrignore
Empty file.
11 changes: 6 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ijapesigan/docs
# hadolint ignore=DL3007
FROM ijapesigan/r2u-r-project:latest

ADD tools /usr/src/local/src
RUN chmod 777 /usr/src/local/src/setup.sh && \
./usr/src/local/src/setup.sh && \
rm -rf /usr/src/local/src
#ADD scripts /usr/src/local/src
#RUN chmod 777 /usr/src/local/src/setup.sh && \
# ./usr/src/local/src/setup.sh && \
# rm -rf /usr/src/local/src
19 changes: 2 additions & 17 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,8 @@
"quarto.quarto",
"REditorSupport.r",
"dracula-theme.theme-dracula"
],
"settings": {
"r.rterm.linux": "/usr/local/bin/radian",
"r.plot.useHttpgd": true
}
]
}
},

"forwardPorts": [8787],
"portsAttributes": {
"8787": {
"label": "Rstudio",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},

"postAttachCommand": "sudo rstudio-server start"
}

}
File renamed without changes.
1 change: 0 additions & 1 deletion .github/github-actions-examples.txt

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
#
# NOTE: This workflow is overkill for most R packages and
# check-standard.yaml is likely a better choice.
# usethis::use_github_action("check-standard") will install it.
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check

on:
workflow_run:
workflows: [ "Make Project" ]
types:
- completed
workflow_dispatch:

jobs:

R-CMD-check:

runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})
Expand All @@ -22,20 +19,25 @@ jobs:
fail-fast: false
matrix:
config:
# macos-13
- {os: macos-13, r: 'release'}
- {os: macos-13, r: 'devel', http-user-agent: 'release'}
# macos-latest
- {os: macos-latest, r: 'release'}

- {os: macos-latest, r: 'devel', http-user-agent: 'release'}
# windows
- {os: windows-latest, r: 'release'}
# Use 3.6 to trigger usage of RTools35
- {os: windows-latest, r: '3.6'}
# use 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: '4.1'}

- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-latest, r: 'oldrel-2'}
- {os: ubuntu-latest, r: 'oldrel-3'}
- {os: ubuntu-latest, r: 'oldrel-4'}
# ubuntu
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-latest, r: 'oldrel-2'}
- {os: ubuntu-latest, r: 'oldrel-3'}
- {os: ubuntu-latest, r: 'oldrel-4'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Compile LaTeX

on:
workflow_run:
workflows: [ "Make Project" ]
types:
- completed
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-latest
container:
image: ijapesigan/docs
# Only restrict concurrency for non-PR jobs
concurrency:
group: latex-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write

steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Make Project
run: make build
-
name: Make LaTeX
run: |
make bibrproject
make pdf
-
name: Push to the latex branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: latex
FOLDER: .setup/latex/pdf
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 15 additions & 10 deletions .github/workflows/lint.yaml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: Lint R Package

name: lint
on:
workflow_run:
workflows: [ "Make Project" ]
types:
- completed
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

Expand All @@ -24,9 +24,14 @@ jobs:
with:
extra-packages: any::lintr, local::.
needs: lint

- name: .lintr
run: |
FILE=.setup/lint/.lintr
if [ -f "$FILE" ]; then
cp "$FILE" .
fi
- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
LINTR_ERROR_ON_LINT: true
36 changes: 36 additions & 0 deletions .github/workflows/make-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Make Project (make all)

on:
workflow_run:
workflows: [ "Make Project" ]
types:
- completed
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-latest
container:
image: ijapesigan/docs
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
packages: read
statuses: write

steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Clean
run: |
make clean
make cleanpkg
-
name: Make Project
run: |
make install
make all
41 changes: 41 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Make Project

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-latest
container:
image: ijapesigan/docs
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
packages: read
statuses: write

steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Clean
run: |
make clean
-
name: Make Project
run: |
make install
make push
-
name: Commit and push changes
uses: devops-infra/action-commit-push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: "Automated build."
47 changes: 0 additions & 47 deletions .github/workflows/pkgdown-gh-pages.yaml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/pkgdown-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Package Website (GitHub Pages)

on:
workflow_run:
workflows: [ "Make Project" ]
types:
- completed
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-latest
container:
image: ijapesigan/docs
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-gh-pages-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write

steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Build Project
run: make build
-
name: Build pkgdown Site
run: make pkgdown
-
name: Add .nojekyll
run: touch pkgdown/.nojekyll
-
name: Deploy to GitHub pages
uses: JamesIves/[email protected]
with:
clean: true
branch: pkgdown
folder: pkgdown
Loading

0 comments on commit e9e9edc

Please sign in to comment.