Skip to content

Commit

Permalink
Merge pull request #3448 from infotroph/build-all-R-versions
Browse files Browse the repository at this point in the history
Build more r versions
  • Loading branch information
infotroph authored Feb 21, 2025
2 parents 9832559 + 85adb5e commit 0bc4edd
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

container:
image: pecan/depends:R4.1
image: pecan/depends:develop-R4.1

steps:
# checkout source code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
_R_CHECK_SYSTEM_CLOCK_: 0

container:
image: pecan/depends:R${{ inputs.R-version }}
image: pecan/depends:develop-R${{ inputs.R-version }}

steps:
# checkout source code
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
matrix:
R:
- "4.3"
- "4.4"
- "devel"
uses: ./.github/workflows/test.yml
with:
Expand All @@ -26,6 +27,7 @@ jobs:
matrix:
R:
- "4.3"
- "4.4"
- "devel"
uses: ./.github/workflows/check.yml
with:
Expand All @@ -39,6 +41,7 @@ jobs:
matrix:
R:
- "4.3"
- "4.4"
- "devel"
uses: ./.github/workflows/sipnet.yml
with:
Expand Down
31 changes: 28 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ on:
- 4.3
- 4.4
- devel

schedule:
# 1:30 AM UTC, different R version each day
- cron: '30 1 * * 1' # Rdevel
- cron: '30 1 * * 2' # R4.4
- cron: '30 1 * * 3' # R4.3
- cron: '30 1 * * 4' # R4.2
- cron: '30 1 * * 5' # R4.1

jobs:
# ----------------------------------------------------------------------
Expand All @@ -35,9 +41,28 @@ jobs:
rversion:
runs-on: ubuntu-latest
steps:
- run: echo "null"
- id: mon
if: github.event.schedule == '30 1 * * 1'
run: echo "R_VERSION=devel" >> "$GITHUB_OUTPUT"
- id: tue
if: github.event.schedule == '30 1 * * 2'
run: echo "R_VERSION=4.4" >> "$GITHUB_OUTPUT"
- id: wed
if: github.event.schedule == '30 1 * * 3'
run: echo "R_VERSION=4.3" >> "$GITHUB_OUTPUT"
- id: thu
if: github.event.schedule == '30 1 * * 4'
run: echo "R_VERSION=4.2" >> "$GITHUB_OUTPUT"
- id: fri
if: github.event.schedule == '30 1 * * 5'
run: echo "R_VERSION=4.1" >> "$GITHUB_OUTPUT"
- id: default
if: github.event_name != 'schedule'
run: echo "R_VERSION=${{ github.event.inputs.r_version || '4.1' }}" >> "$GITHUB_OUTPUT"
outputs:
R_VERSION: ${{ github.event.inputs.r_version || '4.1' }}
# Note: "steps.*" seems to mean "all step ids", not "all steps"
# If seeing weird results here, check that all steps above have an id set.
R_VERSION: ${{ join(steps.*.outputs.R_VERSION, '') }}

# ----------------------------------------------------------------------
# depends image has all the dependencies installed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/download-met-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

container:
image: pecan/depends:R4.1
image: pecan/depends:develop-R4.1

steps:
# checkout source code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sipnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

container:
image: pecan/depends:R${{ inputs.R-version }}
image: pecan/depends:develop-R${{ inputs.R-version }}

steps:
# checkout source code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

container:
image: pecan/depends:R${{ inputs.R-version }}
image: pecan/depends:develop-R${{ inputs.R-version }}

steps:
# checkout source code
Expand Down

0 comments on commit 0bc4edd

Please sign in to comment.