From f7020f76cadaf9a429e34adc372004153985f08c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Wed, 23 Oct 2024 18:36:53 +0200 Subject: [PATCH] OpenBSD GHA workflow [ci skip] --- .github/workflows/openbsd.yaml | 60 ++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/openbsd.yaml diff --git a/.github/workflows/openbsd.yaml b/.github/workflows/openbsd.yaml new file mode 100644 index 0000000..e2e326d --- /dev/null +++ b/.github/workflows/openbsd.yaml @@ -0,0 +1,60 @@ +on: + workflow_dispatch: + inputs: + release: + description: 'OpenBSD release' + required: true + type: choice + options: + - '7.6' + - '7.5' + - '7.4' + default: '7.6' + +name: openbsd.yaml + +jobs: + openbsd: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: r-hub/actions/setup-r-openbsd@main + with: + release: ${{ github.event.inputs.release || '7.6' }} + + - name: Test R in OpenBSD VM + run: | + getRversion() + R.version[["platform"]] + .libPaths() + .Library + Sys.getenv("R_LIBS_SITE") + Sys.getenv("R_LIBS_USER") + find.package("pak") + Sys.getenv() + shell: Rscript {0} + + - uses: r-hub/actions/debug-shell@main + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + pak-version: none + install-pandoc: false + install-quarto: false + cache-version: openbsd-1 + extra-packages: any::rcmdcheck + needs: check + + - uses: r-lib/actions/check-r-package@v2 + with: + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' + upload-results: never + upload-snapshots: false + env: + NOT_CRAN: true + + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: 'check-results' + path: check