Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 22 additions & 17 deletions .github/internal/install-shinyverse/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,27 @@ runs:
extra-packages: ${{ inputs.extra-packages }}
pak-version: "devel"

- name: Get packages for macOS system dependencies
if: runner.os == 'macOS'
id: mac-deps
shell: Rscript {0}
run: |
deps <- setdiff(
sort(unique(unlist(unname(shinycoreci:::apps_deps_map)))),
shinycoreci:::shinyverse_pkgs
)
cat("Deps found:\n", paste0("* ", deps, collapse = "\n"), "\n", sep = "")
- uses: r-hub/actions/setup-r-sysreqs@v1
with:
type: full
xquartz: true

out_deps <- paste0(deps, collapse = " ")
cat("pkgs=", out_deps, "\n", file = Sys.getenv("GITHUB_OUTPUT"), sep = "", append = TRUE)
# - name: Get packages for macOS system dependencies
# if: runner.os == 'macOS'
# id: mac-deps
# shell: Rscript {0}
# run: |
# deps <- setdiff(
# sort(unique(unlist(unname(shinycoreci:::apps_deps_map)))),
# shinycoreci:::shinyverse_pkgs
# )
# cat("Deps found:\n", paste0("* ", deps, collapse = "\n"), "\n", sep = "")

- name: Install mac system dependencies for app packages
if: runner.os == 'macOS'
uses: rstudio/shiny-workflows/setup-macOS-dependencies@v1
with:
extra-packages: ${{ steps.mac-deps.outputs.pkgs }} Cairo FreeType RMySQL textshaping units
# out_deps <- paste0(deps, collapse = " ")
# cat("pkgs=", out_deps, "\n", file = Sys.getenv("GITHUB_OUTPUT"), sep = "", append = TRUE)

# - name: Install mac system dependencies for app packages
# if: runner.os == 'macOS'
# uses: rstudio/shiny-workflows/setup-macOS-dependencies@v1
# with:
# extra-packages: ${{ steps.mac-deps.outputs.pkgs }} Cairo FreeType RMySQL textshaping units
11 changes: 10 additions & 1 deletion .github/workflows/apps-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ on:
value: "windows-latest"
ubuntu:
description: ubuntu OS value
value: "ubuntu-latest"
value: "ubuntu-24.04"
rspm-macos:
description: macOS RSPM
value: "https://p3m.dev/cran/latest"
rspm-windows:
description: windows RSPM
value: "https://p3m.dev/cran/latest"
rpspm-ubuntu:
description: ubuntu RSPM
value: "https://p3m.dev/cran/__linux__/noble/latest"
cache-version:
description: cache-version to be used when pulling library cache
value: "13"
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/apps-test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,36 +32,39 @@ jobs:
r-version: ${{ needs.config.outputs.release }}
os: ${{ needs.config.outputs.macos }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-macos }}
macos-oldrel-1:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel1 }}
os: ${{ needs.config.outputs.macos }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-macos }}
macos-oldrel-2:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel2 }}
os: ${{ needs.config.outputs.macos }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-macos }}
macos-oldrel-3:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel3 }}
os: ${{ needs.config.outputs.macos }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-macos }}
macos-oldrel-4:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel4 }}
os: macos-13
# TODO-future: Use config below when the oldrel4 r-version is >= 4.1
# os: ${{ needs.config.outputs.macos }}
os: ${{ needs.config.outputs.macos }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-macos }}

ubuntu-release:
needs: [config]
Expand All @@ -70,34 +73,39 @@ jobs:
r-version: ${{ needs.config.outputs.release }}
os: ${{ needs.config.outputs.ubuntu }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-ubuntu }}
ubuntu-oldrel-1:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel1 }}
os: ${{ needs.config.outputs.ubuntu }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-ubuntu }}
ubuntu-oldrel-2:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel2 }}
os: ${{ needs.config.outputs.ubuntu }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-ubuntu }}
ubuntu-oldrel-3:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel3 }}
os: ${{ needs.config.outputs.ubuntu }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-ubuntu }}
ubuntu-oldrel-4:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel4 }}
os: ${{ needs.config.outputs.ubuntu }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-ubuntu }}

windows-release:
needs: [config]
Expand All @@ -106,34 +114,39 @@ jobs:
r-version: ${{ needs.config.outputs.release }}
os: ${{ needs.config.outputs.windows }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-windows }}
windows-oldrel-1:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel1 }}
os: ${{ needs.config.outputs.windows }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-windows }}
windows-oldrel-2:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel2 }}
os: ${{ needs.config.outputs.windows }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-windows }}
windows-oldrel-3:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel3 }}
os: ${{ needs.config.outputs.windows }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-windows }}
windows-oldrel-4:
needs: [config]
uses: ./.github/workflows/apps-test-os.yml
with:
r-version: ${{ needs.config.outputs.oldrel4 }}
os: ${{ needs.config.outputs.windows }}
cache-version: ${{ needs.config.outputs.cache-version }}
rspm: ${{ needs.config.outputs.rspm-windows }}

build-results:
uses: ./.github/workflows/build-results.yml
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/apps-test-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ on:
required: false
os:
type: string
default: ubuntu-latest
default: ubuntu-24.04
required: false
rspm:
type: string
default: "https://p3m.dev/cran/__linux__/noble/latest"
required: false
extra-key:
type: string
Expand Down Expand Up @@ -45,6 +49,7 @@ jobs:
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: ${{ inputs.rspm }}

steps:
- name: Set up JDK 11
Expand Down
2 changes: 2 additions & 0 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ shinycoreci_is_local <- function() {
}

shinyverse_repos_option <- function() {
RSPM <- Sys.getenv("RSPM")
c(
# Use the shinycoreci universe to avoid GH rate limits!
"AAA" = shinyverse_cran_url,
if (nzchar(RSPM)) c("RSPM" = RSPM),
getOption("repos", c("CRAN" = "https://cloud.r-project.org"))
)
}
Expand Down
2 changes: 1 addition & 1 deletion inst/apps/109-render-table/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Author: Bárbara Borges
AuthorUrl: http://www.rstudio.com/
License: MIT
DisplayMode: Normal
Tags: outputs
Tags: outputs
Loading