-
Notifications
You must be signed in to change notification settings - Fork 2
ci: use upstream rainix-rs-static reusable #198
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
405d6ba
3b1ae06
5ecbf04
b0ba3fc
7d6e641
0a05628
3dca49d
2983ae7
3cbb675
4f43e13
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 |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: copy-artifacts | ||
| on: [push] | ||
| jobs: | ||
| copy-artifacts: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: nixbuild/nix-quick-install-action@v30 | ||
| with: | ||
| nix_conf: | | ||
| keep-env-derivations = true | ||
| keep-outputs = true | ||
| - name: Restore and save Nix store | ||
| uses: nix-community/cache-nix-action@v6 | ||
| with: | ||
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | ||
| restore-prefixes-first-match: nix-${{ runner.os }}- | ||
| gc-max-store-size-linux: 1G | ||
| - name: Install soldeer dependencies | ||
| if: hashFiles('soldeer.lock') != '' | ||
| run: nix develop github:rainlanguage/rainix#sol-shell -c forge soldeer install | ||
| - name: Build solidity artifacts | ||
| run: nix develop github:rainlanguage/rainix#sol-shell -c forge build | ||
| - name: Copy forge artifacts into committed location | ||
| run: nix develop github:rainlanguage/rainix#sol-shell -c forge script ./script/CopyArtifacts.sol | ||
| - name: Assert committed artifacts match freshly built | ||
| run: | | ||
| if ! git diff --exit-code; then | ||
| echo "::error::Committed artifacts in crates/float/abi/ are stale. Run 'forge script script/CopyArtifacts.sol' and commit the updated files." | ||
| exit 1 | ||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| name: rainix-rs-static | ||
| on: [push] | ||
| jobs: | ||
| rs-static: | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-rs-static.yaml@main | ||
|
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
rg -nP '^\s*uses:\s*[^#\n]+@(?:main|master|[A-Za-z0-9._/-]+)$' .github/workflowsRepository: rainlanguage/rain.math.float Length of output: 1019 🏁 Script executed: # Check for any comments or documentation about workflow pinning strategy
find .github -name "*.md" -o -name "*.txt" -o -name "*.yaml" -o -name "*.yml" | head -20Repository: rainlanguage/rain.math.float Length of output: 371 🏁 Script executed: # Look for README or documentation files that might explain the workflow strategy
find . -maxdepth 2 -name "README*" -o -name "CONTRIBUTING*" | head -10Repository: rainlanguage/rain.math.float Length of output: 84 🏁 Script executed: # Check if there are any comments in workflow files about the pinning strategy
rg -A 2 "uses:.*@main" .github/workflows/ -t yamlRepository: rainlanguage/rain.math.float Length of output: 1097 🏁 Script executed: # Check the README for any guidance on workflow versions
cat README.md | head -100Repository: rainlanguage/rain.math.float Length of output: 4414 🏁 Script executed: # Check the actual content of the rainix-rs-static.yaml file to confirm context
cat -n .github/workflows/rainix-rs-static.yamlRepository: rainlanguage/rain.math.float Length of output: 235 Pin the reusable workflow to an immutable commit SHA. Using Suggested change jobs:
rs-static:
- uses: rainlanguage/rainix/.github/workflows/rainix-rs-static.yaml@main
+ uses: rainlanguage/rainix/.github/workflows/rainix-rs-static.yaml@<full_commit_sha>🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| crates/float/abi/ |
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 | 💤 Low value
Consider removing unnecessary Nix configuration.
The
keep-env-derivationsandkeep-outputssettings preserve build outputs and environments, which are typically useful for debugging or inspecting build artifacts. For this CI workflow that only needs to build and verify, these settings may add overhead without benefit.🤖 Prompt for AI Agents