Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Oct 15, 2023
1 parent 5d159aa commit 663678d
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/ci.yaml → .github/workflows/check-release.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
# Run CI for R using https://eddelbuettel.github.io/r-ci/
# This file is a slight variant by running a matrix of containers

name: ci
name: R-CMD-check

on:
push:
branches:
- ci
branches: [main, dev]
pull_request:
branches: [main]

jobs:
R-CMD-check:
runs-on: ubuntu-latest
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}

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

steps:
- uses: actions/checkout@v3

- name: Install system dependency
run: |
sudo apt-get update
sudo apt-get -y install libcurl4-openssl-dev libdeflate-dev
echo 'export LIBRARY_PATH=${LIBRARY_PATH}:/usr/lib/x84_64-linux-gnu' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/x84_64-linux-gnu' >> ~/.bashrc
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
Expand All @@ -35,4 +42,5 @@ jobs:
needs: check

- uses: r-lib/actions/check-r-package@v2

with:
upload-snapshots: true

0 comments on commit 663678d

Please sign in to comment.