-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
323 changed files
with
10,695 additions
and
10,822 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. | ||
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- fix/* | ||
pull_request: | ||
branches: | ||
- main | ||
- fix/* | ||
schedule: | ||
- cron: '0 2 * * *' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.sha }}-${{ github.base_ref || '' }} | ||
cancel-in-progress: true | ||
|
||
name: R-CMD-check-extra | ||
|
||
jobs: | ||
sanitizer: | ||
runs-on: ubuntu-22.04 | ||
|
||
name: Sanitizer | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: apt update | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libarpack2-dev | ||
shell: bash | ||
|
||
- name: run sanitizer | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: ghcr.io/krlmlr/rigraph-san:main | ||
options: --rm --platform linux/amd64 -v ${{ github.workspace }}:/rigraph | ||
run: | | ||
set -e | ||
printenv | ||
cd rigraph | ||
RDcsan CMD INSTALL . --no-byte-compile | ||
TESTTHAT_PARALLEL=false CI=true RDcsan -q -e 'testthat::test_local(reporter = c("location", "summary"), load_package = "installed")' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: 'Custom steps to run after R packages are installed' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Use GLPK on macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
echo -e 'CPPFLAGS = -I/opt/homebrew/include\nLDFLAGS = -L/opt/homebrew/lib' | tee ~/.R/Makevars | ||
shell: bash |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Helper workflow to trigger rcc for each commit on a branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- each-* | ||
|
||
name: each-rcc | ||
|
||
jobs: | ||
each-rcc: | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
sha: ${{ steps.commit.outputs.sha }} | ||
versions-matrix: ${{ steps.versions-matrix.outputs.matrix }} | ||
dep-suggests-matrix: ${{ steps.dep-suggests-matrix.outputs.matrix }} | ||
|
||
name: "Trigger rcc workflow for each commit" | ||
|
||
# Begin custom: services | ||
# End custom: services | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Enumerate all commits from the repository's main branch | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
# Get name of main branch of repository | ||
# origin/HEAD isn't known here | ||
main=$(git remote show origin | grep 'HEAD branch' | cut -d' ' -f5) | ||
commits=$(git log --reverse --pretty=format:"%H" origin/${main}.. --) | ||
echo $commits | ||
# Run workflow for each commit where the status of the rcc workflow isn't "pending" or "success" | ||
for commit in $commits; do | ||
echo $commit | ||
# Get first status of the workflow with the name "rcc" | ||
status=$(gh api repos/{owner}/{repo}/commits/${commit}/statuses | jq -r '.[] | select(.context == "rcc") | .state' | head -n 1) | ||
echo $status | ||
if [[ "$status" != "pending" && "$status" != "success" ]]; then | ||
echo "Running rcc for commit $commit" | ||
gh workflow run rcc -f ref=$commit -r ${{ github.ref }} | ||
fi | ||
done | ||
shell: bash |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ cran | |
/docs | ||
/compile_commands.json | ||
/.cache | ||
/rchk |
Oops, something went wrong.