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

GHA: add openbsd workflow, adjust freebsd #185

Merged
merged 2 commits into from
Oct 24, 2024
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/freebsd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
inputs:
release:
Expand All @@ -11,6 +14,7 @@ on:
- '13.4'
- '13.3'
- '13.2'
- '12.4'
default: '14.1'

name: freebsd.yaml
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/openbsd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
on:
push:
branches: [main, master]
pull_request:
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@v1
with:
release: ${{ github.event.inputs.release || '7.6' }}

- name: Test R in OpenBSD VM
run: |
getRversion()
R.version[["platform"]]
.libPaths()
.Library
find.package("pak")
Sys.getenv()
shell: Rscript {0}

- uses: r-hub/actions/debug-shell@v1

- name: Install system packages (for pingr)
run: |
pkg_add -I libbind
cd /usr/local/lib && ln -s libbind/libbind.so* .
shell: openbsd {0}

- 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
Loading