Merge pull request #477 from RobFryer/multiplot #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: [develop, main] | |
pull_request: | |
branches: [develop] | |
workflow_dispatch: | |
name: build | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# Only restrict concurrency for non-PR jobs | |
concurrency: | |
group: build-${{ github.event_name != 'pull_request' || github.run_id }} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
## qpdf is needed for size checks on outputs, otherwise we get spurious warnings | |
- run: sudo apt-get install -y libqpdf-dev | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
any::rcmdcheck | |
local::. | |
needs: | | |
check | |
- name: Reinstall Matrix | |
run: install.packages("Matrix") | |
shell: Rscript {0} | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
args: 'c("--no-manual")' | |
error-on: '"error"' | |
check-dir: '"check"' | |
## If we're pushing, which must be to main, upload the package as an artefact | |
- name: Archive production artifacts | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: package-distribution | |
path: | | |
check/harsat_*.tar.gz | |