Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci #41

Open
wants to merge 6 commits into
base: staging
Choose a base branch
from
Open

Ci #41

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/RMixtComp-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: RMixtComp with clang16

on:
push:
branches:
- master
- staging
paths:
- 'MixtComp/**'
- '!MixtComp/docs/**'
- 'RMixtComp/**'
- 'RMixtCompIO/**'
- 'RMixtCompUtilities/**'
- '.github/workflows/RMixtComp-clang.yml'
- '!**/README.md'
pull_request:
branches:
- master
- staging
paths:
- 'MixtComp/**'
- '!MixtComp/docs/**'
- 'RMixtComp/**'
- 'RMixtCompIO/**'
- 'RMixtCompUtilities/**'
- '.github/workflows/RMixtComp-clang.yml'
- '!**/README.md'

jobs:
R-CMD-check:
runs-on: ubuntu-latest
container:
image: ghcr.io/r-hub/containers/clang16:latest

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:

- uses: actions/checkout@v3

- name: Checkout submodules
run: |
git submodule update --init --recursive

- uses: r-lib/actions/setup-r@v2

- uses: r-lib/actions/setup-pandoc@v2

- name: Install dependencies
run: |
R -q -e 'pak::pkg_install(c("deps::.", "any::rcmdcheck"), dependencies = TRUE)'

- name: Copy MixtComp files
working-directory: RMixtCompIO
run: |
make clean
make updateLib

- name: Compile Rcpp Attributes for RMixtCompIO
working-directory: RMixtCompIO
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: Rcpp::compileAttributes()
shell: Rscript {0}


- uses: r-lib/actions/check-r-package@v2
4 changes: 2 additions & 2 deletions .github/workflows/RMixtComp-eigen34.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-latest, r: 'release'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "22.04"))')

- name: Install RMixtCompIO dependencies
working-directory: RMixtCompIO
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/RMixtComp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-latest, r: 'release'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "22.04"))')

- name: Install RMixtCompIO dependencies
working-directory: RMixtCompIO
Expand Down