diff --git a/.github/workflows/RMixtComp-clang.yml b/.github/workflows/RMixtComp-clang.yml new file mode 100644 index 000000000..247fef871 --- /dev/null +++ b/.github/workflows/RMixtComp-clang.yml @@ -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 diff --git a/.github/workflows/RMixtComp-eigen34.yml b/.github/workflows/RMixtComp-eigen34.yml index 34e16262f..4dcd73502 100644 --- a/.github/workflows/RMixtComp-eigen34.yml +++ b/.github/workflows/RMixtComp-eigen34.yml @@ -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 @@ -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 diff --git a/.github/workflows/RMixtComp.yml b/.github/workflows/RMixtComp.yml index e79924564..d95be749e 100644 --- a/.github/workflows/RMixtComp.yml +++ b/.github/workflows/RMixtComp.yml @@ -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 @@ -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