-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add versioned Cloud Agent dev environment (.cursor) #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,4 @@ | ||
| { | ||
| "name": "aFIPC", | ||
| "install": "bash .cursor/install.sh" | ||
| } |
This file contains hidden or 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,41 @@ | ||
| #!/usr/bin/env bash | ||
| # Cloud Agent install step for the aFIPC R package. | ||
| # | ||
| # The R toolchain and CRAN dependencies (mirt, testthat, rcmdcheck, roxygen2) | ||
| # are normally already present in the prebuilt environment base image/snapshot. | ||
| # The guarded block below only runs on a bare image so this script stays | ||
| # idempotent and self-contained. R itself is pulled from the CRAN "release" | ||
| # channel (matching the r.yml CI), and CRAN packages come from r2u as prebuilt | ||
| # Ubuntu binaries so mirt does not have to be compiled from source. | ||
| set -euo pipefail | ||
|
|
||
| if ! command -v R >/dev/null 2>&1; then | ||
| sudo apt-get update -qq | ||
| sudo apt-get install -y --no-install-recommends wget ca-certificates gnupg dirmngr | ||
|
|
||
| # CRAN apt repo: release R for Ubuntu noble. | ||
| wget -q -O- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc \ | ||
| | sudo tee /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc >/dev/null | ||
| echo "deb [arch=amd64] https://cloud.r-project.org/bin/linux/ubuntu noble-cran40/" \ | ||
| | sudo tee /etc/apt/sources.list.d/cran_r.list | ||
|
seonghobae marked this conversation as resolved.
|
||
|
|
||
| # r2u: prebuilt binary CRAN packages for Ubuntu noble. | ||
| wget -q -O- https://eddelbuettel.github.io/r2u/assets/dirk_eddelbuettel_key.asc \ | ||
| | sudo tee /etc/apt/trusted.gpg.d/cranapt_key.asc >/dev/null | ||
| echo "deb [arch=amd64] https://r2u.stat.illinois.edu/ubuntu noble main" \ | ||
| | sudo tee /etc/apt/sources.list.d/cranapt.list | ||
|
seonghobae marked this conversation as resolved.
|
||
| printf 'Package: *\nPin: release o=CRAN-Apt Project\nPin: release l=CRAN-Apt Packages\nPin-Priority: 700\n' \ | ||
| | sudo tee /etc/apt/preferences.d/99cranapt >/dev/null | ||
|
|
||
| sudo apt-get update -qq | ||
| sudo apt-get install -y --no-install-recommends \ | ||
| r-base-core r-cran-mirt r-cran-testthat r-cran-roxygen2 r-cran-rcmdcheck pandoc | ||
|
seonghobae marked this conversation as resolved.
|
||
| fi | ||
|
|
||
| # Install the checked-out aFIPC source into the R user library so that | ||
| # library(aFIPC) and the test suite run against the current tree. | ||
| USERLIB=$(R_PROFILE_USER=/dev/null Rscript -e 'cat(Sys.getenv("R_LIBS_USER"))') | ||
| mkdir -p "$USERLIB" | ||
| R_PROFILE_USER=/dev/null R CMD INSTALL --no-multiarch --no-staged-install -l "$USERLIB" . | ||
|
seonghobae marked this conversation as resolved.
seonghobae marked this conversation as resolved.
|
||
|
|
||
| echo "aFIPC install complete: R=$(R --version | head -1)" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.