Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: r-lib/rig
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.0
Choose a base ref
...
head repository: r-lib/rig
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 13,084 additions and 2,659 deletions.
  1. +66 −0 .github/workflows/conts.yml
  2. +21 −0 .github/workflows/deb-repo.yaml
  3. +184 −45 .github/workflows/test.yaml
  4. +12 −0 .github/workflows/winget.yaml
  5. +10 −0 .gitignore
  6. +847 −524 Cargo.lock
  7. +14 −6 Cargo.toml
  8. +17 −30 Dockerfile
  9. +1 −1 LICENSE
  10. +117 −21 Makefile
  11. +129 −0 NEWS.md
  12. +249 −44 README.Rmd
  13. +278 −90 README.md
  14. +0 −31 RELEASE.md
  15. +5 −5 Rig.app/Rig/AppDelegate.swift
  16. +9 −5 build.rs
  17. +46 −21 choco/rig/rig.nuspec
  18. +2 −2 choco/rig/tools/chocolateyinstall.ps1
  19. +24 −0 containers/fedora/Dockerfile
  20. +393 −0 containers/matrix.json
  21. +32 −0 containers/matrix.py
  22. +23 −0 containers/suse/Dockerfile
  23. +40 −0 containers/ubuntu/Dockerfile
  24. +50 −0 containers/ubuntu/multi/Dockerfile
  25. BIN containers/ubuntu/rig.gpg
  26. +12 −0 docker-compose.yaml
  27. +3 −6 rig.iss
  28. +202 −0 src/alias.rs
  29. +297 −27 src/args.rs
  30. +462 −51 src/common.rs
  31. +1 −1 src/config.rs
  32. +26 −26 src/download.rs
  33. +26 −2 src/escalate.rs
  34. +87 −44 src/help-common.in
  35. +199 −198 src/help-linux.in
  36. +334 −346 src/help-macos.in
  37. +257 −229 src/help-windows.in
  38. +4 −3 src/lib.rs
  39. +8 −8 src/library.rs
  40. +553 −298 src/linux.rs
  41. +213 −122 src/macos.rs
  42. +57 −22 src/main.rs
  43. +5 −1 src/renv.rs
  44. +30 −311 src/resolve.rs
  45. +26 −2 src/run.rs
  46. +41 −5 src/rversion.rs
  47. +547 −0 src/scrun.rs
  48. +6 −10 src/sysreqs.rs
  49. +59 −1 src/utils.rs
  50. +471 −81 src/windows.rs
  51. +3 −0 tests/bats/.codespellrc
  52. +5 −0 tests/bats/.devcontainer/devcontainer.json
  53. +35 −0 tests/bats/.editorconfig
  54. +3 −0 tests/bats/.gitattributes
  55. +30 −0 tests/bats/.github/ISSUE_TEMPLATE/bug_report.md
  56. +20 −0 tests/bats/.github/ISSUE_TEMPLATE/feature_request.md
  57. +47 −0 tests/bats/.github/dependabot.yml
  58. +10 −0 tests/bats/.github/workflows/check_pr_label.sh
  59. +22 −0 tests/bats/.github/workflows/codespell.yml
  60. +22 −0 tests/bats/.github/workflows/dependency-review.yml
  61. +35 −0 tests/bats/.github/workflows/release.yml
  62. +59 −0 tests/bats/.github/workflows/release_dockerhub.yml
  63. +72 −0 tests/bats/.github/workflows/scorecard.yml
  64. +1 −0 tests/bats/.github/workflows/set_nounset.bash
  65. +315 −0 tests/bats/.github/workflows/tests.yml
  66. +10 −0 tests/bats/.gitignore
  67. +14 −0 tests/bats/.pre-commit-config.yaml
  68. +9 −0 tests/bats/.readthedocs.yml
  69. +4 −0 tests/bats/AUTHORS
  70. +53 −0 tests/bats/LICENSE.md
  71. +127 −0 tests/bats/README.md
  72. +9 −0 tests/bats/SECURITY.md
  73. +60 −0 tests/bats/bin/bats
  74. +178 −0 tests/bats/contrib/release.sh
  75. +66 −0 tests/bats/contrib/rpm/bats.spec
  76. +358 −0 tests/bats/contrib/semver
  77. +8 −0 tests/bats/docker-compose.override.dist
  78. +13 −0 tests/bats/docker-compose.yml
  79. +51 −0 tests/bats/docker/install_libs.sh
  80. +30 −0 tests/bats/docker/install_tini.sh
  81. +107 −0 tests/bats/docker/tini.pubkey.gpg
  82. +23 −0 tests/bats/install.sh
  83. +258 −0 tests/bats/lib/bats-core/common.bash
  84. +151 −0 tests/bats/lib/bats-core/formatter.bash
  85. +22 −0 tests/bats/lib/bats-core/preprocessing.bash
  86. +113 −0 tests/bats/lib/bats-core/semaphore.bash
  87. +492 −0 tests/bats/lib/bats-core/test_functions.bash
  88. +399 −0 tests/bats/lib/bats-core/tracing.bash
  89. +37 −0 tests/bats/lib/bats-core/validator.bash
  90. +44 −0 tests/bats/lib/bats-core/warnings.bash
  91. +517 −0 tests/bats/libexec/bats-core/bats
  92. +383 −0 tests/bats/libexec/bats-core/bats-exec-file
  93. +472 −0 tests/bats/libexec/bats-core/bats-exec-suite
  94. +363 −0 tests/bats/libexec/bats-core/bats-exec-test
  95. +6 −0 tests/bats/libexec/bats-core/bats-format-cat
  96. +250 −0 tests/bats/libexec/bats-core/bats-format-junit
  97. +348 −0 tests/bats/libexec/bats-core/bats-format-pretty
  98. +55 −0 tests/bats/libexec/bats-core/bats-format-tap
  99. +89 −0 tests/bats/libexec/bats-core/bats-format-tap13
  100. +119 −0 tests/bats/libexec/bats-core/bats-preprocess
  101. +34 −0 tests/bats/package.json
  102. +22 −0 tests/bats/shellcheck.sh
  103. +39 −0 tests/bats/uninstall.sh
  104. +10 −0 tests/fixtures/app-api/plumber.R
  105. 0 tests/fixtures/app-quarto-shiny/_quarto.yml
  106. +20 −0 tests/fixtures/app-quarto-shiny/index.qmd
  107. +43 −0 tests/fixtures/app-quarto-static/hello.qmd
  108. +14 −0 tests/fixtures/app-rmd-shiny/index.Rmd
  109. +29 −0 tests/fixtures/app-rmd-static/example.Rmd
  110. +7 −0 tests/fixtures/app-shiny/app.R
  111. +10 −0 tests/fixtures/app-static/index.html
  112. +52 −0 tests/rig-add.rs
  113. +25 −0 tests/rig-system.rs
  114. +32 −0 tests/test-linux-docker.sh
  115. +26 −22 tests/test-linux.sh
  116. +11 −12 tests/test-macos.sh
  117. +5 −5 tests/test-windows.sh
  118. +60 −0 tools/RELEASE.md
  119. 0 { → tools}/distribution.xml.in
  120. +30 −0 tools/entrypoint.sh
  121. +94 −0 tools/faq.Rmd
  122. +2 −1 { → tools}/gon.hcl.in
  123. 0 { → tools}/header.md
  124. +55 −0 tools/linux/make-deb.sh
  125. +52 −0 tools/linux/make-rpm.sh
  126. BIN tools/rig-app.png
66 changes: 66 additions & 0 deletions .github/workflows/conts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build rig containers for new release

on:
workflow_dispatch:
inputs:
inpconts:
description: |
Containers, comma separated list or 'all'.
required: false
default: 'devel'
type: string
schedule:
- cron: '55 7 * * *'

jobs:

# ------------------------------------------------------------------------

setup-matrix:
runs-on: ubuntu-latest
outputs:
containers: ${{steps.setup-matrix.outputs.containers}}

steps:
- uses: actions/checkout@v4
- name: Set up matrix of containers
id: setup-matrix
run: |
cs=$(python containers/matrix.py ${{ github.event.inputs.inpconts || 'devel' }})
echo "containers=$cs" >> $GITHUB_OUTPUT
# ------------------------------------------------------------------------

containers:
needs: setup-matrix
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.setup-matrix.outputs.containers) }}
runs-on: ubuntu-latest
name: ${{ matrix.config.name }}

steps:
- uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
provenance: false
context: containers/${{ matrix.config.dir }}
file: ${{ matrix.config.file }}
build-args: "${{ join(matrix.config.args, '\n') }}"
push: true
outputs:
tags: "${{ join(matrix.config.tags, '\n') }}"
21 changes: 21 additions & 0 deletions .github/workflows/deb-repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

name: Debian repo

on:
workflow_dispatch:

jobs:
deploy-repo:
name: Update Debian Repo
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update
uses: gaborcsardi/debian-repo@v1
with:
gpg-public-key: ${{ secrets.PUBLIC_REPO_KEY }}
gpg-private-key: ${{ secrets.PRIVATE_REPO_KEY }}
gpg-passphrase: ${{ secrets.REPO_KEY_PASSPHRASE }}
Loading