Skip to content

Commit

Permalink
Merge pull request #220 from CSAFE-ISU/219-single-check-badge
Browse files Browse the repository at this point in the history
Combined R-CMD-check GitHub Actions into a single badge
  • Loading branch information
stephaniereinders authored Feb 8, 2025
2 parents 7cf3a31 + cc00bc3 commit 7f61cd0
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 128 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/R-CMD-check-macos.yaml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/R-CMD-check-ubuntu.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main, master]
pull_request:

name: R-CMD-check-windows.yaml
name: R-CMD-check.yaml

permissions: read-all

Expand All @@ -19,6 +19,10 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: windows-latest, r: 'release'}

env:
Expand All @@ -27,6 +31,12 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Install system dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgsl-dev libgsl27
- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -35,7 +45,13 @@ jobs:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true


- name: Install JAGS (macOS)
if: runner.os == 'macOS'
run: |
brew install jags
echo "JAGS_HOME=$(brew --prefix jags)" >> $GITHUB_ENV
- name: Install JAGS (Windows)
if: runner.os == 'Windows'
run: |
Expand All @@ -57,7 +73,22 @@ jobs:
# Clean up the installer
Remove-Item -Path $tempDir -Recurse -Force
shell: pwsh


- name: Set up JAGS environment (macOS)
if: runner.os == 'macOS'
run: |
echo "JAGS_LIB=$JAGS_HOME/lib" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=$JAGS_HOME/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
echo "LDFLAGS=-L$JAGS_HOME/lib" >> $GITHUB_ENV
echo "CPPFLAGS=-I$JAGS_HOME/include" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$JAGS_HOME/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=$JAGS_HOME/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
# Create symbolic links for JAGS modules
sudo mkdir -p /usr/local/lib/JAGS/modules-4
for module in basemod bugs terminal; do
sudo ln -sf "$JAGS_HOME/lib/JAGS/modules-4/${module}.so" "/usr/local/lib/JAGS/modules-4/${module}.so"
done
- name: Set up JAGS environment (Windows)
if: runner.os == 'Windows'
run: |
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@


<!-- badges: start -->
[![R-CMD-check-macos](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check-macos.yaml/badge.svg)](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check-macos.yaml)
[![R-CMD-check-windows](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check-windows.yaml/badge.svg)](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check-windows.yaml)
[![R-CMD-check-ubuntu](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check-ubuntu.yaml/badge.svg)](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check-ubuntu.yaml)
[![R-CMD-check](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/CSAFE-ISU/handwriter/graph/badge.svg)](https://app.codecov.io/gh/CSAFE-ISU/handwriter)
<!-- badges: end -->

Expand Down

0 comments on commit 7f61cd0

Please sign in to comment.