-
Notifications
You must be signed in to change notification settings - Fork 18
Bump svm-rs and svm-rs-build deps
#2356
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
Changes from all commits
21298eb
0586478
0d27661
a2f1334
0337d90
adbc940
09a0bc2
67b5002
54b6286
5a80763
0fb4f0c
570a3b8
59cbdcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,9 @@ jobs: | |
| submodules: recursive | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Free disk space | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
| uses: jlumbroso/free-disk-space@v1.3.1 | ||
|
|
||
| - uses: nixbuild/nix-quick-install-action@v30 | ||
| with: | ||
| nix_conf: | | ||
|
|
@@ -38,11 +41,17 @@ jobs: | |
| # collect garbage until the Nix store size (in bytes) is at most this number | ||
| # before trying to save a new cache | ||
| # 1G = 1073741824 | ||
| gc-max-store-size-linux: 1G | ||
| gc-max-store-size-linux: 10G | ||
|
|
||
| - run: ./prep-webapp.sh | ||
| env: | ||
| PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID || 'test' }} | ||
| COMMIT_SHA: ${{ github.sha }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Remove redundant COMMIT_SHA environment variable. Line 49 passes Apply this diff to remove the duplicate: - run: ./prep-webapp.sh
env:
PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID || 'test' }}
- COMMIT_SHA: ${{ github.sha }}
CARGO_HOME: ${{ github.workspace }}/.cargo
CARGO_TARGET_DIR: ${{ github.workspace }}/.cargo/targetAlternatively, if prep-webapp.sh requires it to be passed explicitly, add a comment explaining why it's not inherited from the job env.
🤖 Prompt for AI Agents |
||
| CARGO_HOME: ${{ github.workspace }}/.cargo | ||
| CARGO_TARGET_DIR: ${{ github.workspace }}/.cargo/target | ||
|
|
||
| - name: Cleanup Rust artifacts after prep | ||
| run: rm -rf target || true | ||
|
|
||
| - run: nix develop -c npm run svelte-lint-format-check -w @rainlanguage/webapp | ||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,9 @@ jobs: | |
| submodules: recursive | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Free disk space | ||
| uses: jlumbroso/free-disk-space@v1.3.1 | ||
|
Comment on lines
+27
to
+28
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider specifying jlumbroso/free-disk-space action parameters for maximum disk recovery. The action is used without explicit configuration, relying on defaults. Based on prior review feedback, consider adding parameters to maximize disk space recovery for this build environment. Apply this diff to add action parameters: - name: Free disk space
- uses: jlumbroso/free-disk-space@v1.3.1
+ uses: jlumbroso/free-disk-space@v1.3.1
+ with:
+ android: true
+ dotnet: true
+ haskell: true
+ large-packages: false
+ docker-images: false
+ swap-storage: falseThis aligns with the pattern suggested in previous reviews and ensures maximum disk space availability for the Nix build cache and compilation artifacts. 🤖 Prompt for AI Agents |
||
|
|
||
| - uses: DeterminateSystems/nix-installer-action@main | ||
| with: | ||
| determinate: true | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -29,8 +29,13 @@ keep=( | |||||
| echo "Preparing base setup..." | ||||||
| ./prep-base.sh | ||||||
|
|
||||||
| rm -rf target || true | ||||||
|
|
||||||
| echo "Building packages..." | ||||||
| nix develop -i ${keep[@]} -c bash -c '(npm run build -w @rainlanguage/orderbook)' | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix Shellcheck SC2068 warning by quoting array expansion. The array Apply this diff to fix the array expansion: -nix develop -i ${keep[@]} -c bash -c '(npm run build -w @rainlanguage/orderbook)'
+nix develop -i "${keep[@]}" -c bash -c '(npm run build -w @rainlanguage/orderbook)'Additionally, apply the same fix to line 39 if it also uses -nix develop -i ${keep[@]} -c bash -c '(npm run build -w @rainlanguage/ui-components && npm run build -w @rainlanguage/webapp)'
+nix develop -i "${keep[@]}" -c bash -c '(npm run build -w @rainlanguage/ui-components && npm run build -w @rainlanguage/webapp)'📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shellcheck (0.11.0)[error] 35-35: Double quote array expansions to avoid re-splitting elements. (SC2068) 🤖 Prompt for AI Agents |
||||||
|
|
||||||
| rm -rf target || true | ||||||
|
|
||||||
| nix develop -i ${keep[@]} -c bash -c '(npm run build -w @rainlanguage/ui-components && npm run build -w @rainlanguage/webapp)' | ||||||
|
|
||||||
| # Temporarily disable command echoing | ||||||
|
|
||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
Remove redundant COMMIT_SHA environment variable.
Line 49 passes
COMMIT_SHA: ${{ github.sha }}to the prep-webapp.sh step, but this variable is already defined in the job'senvblock at line 19. Passing it again is redundant.Apply this diff to remove the duplicate:
- run: ./prep-webapp.sh env: PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID || 'test' }} - COMMIT_SHA: ${{ github.sha }} CARGO_HOME: ${{ github.workspace }}/.cargo CARGO_TARGET_DIR: ${{ github.workspace }}/.cargo/targetAlternatively, if prep-webapp.sh requires it to be passed explicitly, add a comment explaining why it's not inherited from the job env.
📝 Committable suggestion
🤖 Prompt for AI Agents