Skip to content
Merged
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
22 changes: 0 additions & 22 deletions .github/actions/nix-cachix-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ inputs:
Optional `gc-max-store-size-macos` for the bundled cache-nix-action. Left empty (the action's own default) unless a caller needs to cap the macOS store before saving.
required: false
default: ''
github-token:
description: >-
GitHub token used to authenticate nix's GitHub API calls (flake
resolution), so they use the run-token rate limit (~1000/hr) instead of
the unauthenticated 60/hr/IP cap that 429s under CI bursts. `github.token`
does NOT populate inside a composite invoked across the org boundary, so a
cross-org reusable caller MUST pass its own `github.token` here;
same-org callers may omit it and fall back to the composite's own token.
required: false
default: ''
runs:
using: composite
steps:
Expand All @@ -59,18 +49,6 @@ runs:
nix_conf: |
keep-env-derivations = true
keep-outputs = true
# Authenticate nix GitHub API calls (flake resolution) so they
# use the run token rate limit (~1000/hr) instead of the
# unauthenticated 60/hr/IP cap, which 429s under CI bursts.
access-tokens = github.com=${{ inputs.github-token || github.token }}
# TEMPORARY: log token lengths (never values) to diagnose the cross-org
# flake-fetch 429. Remove once the wiring is confirmed.
- name: Debug token wiring
shell: bash
env:
INPUT_TOK: ${{ inputs.github-token }}
BARE_TOK: ${{ github.token }}
run: echo "WIRING inputs.github-token len=${#INPUT_TOK} bare-github.token len=${#BARE_TOK}"
# Substitute prebuilt rainix derivations from the shared Cachix binary
# cache instead of rebuilding toolchain crates from source (rainix#196).
# Pushes new paths when the auth token is set; continue-on-error so a
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rainix-autopublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
checkout: 'false'
# Resolve the crate list once (crates, else the back-compat singular crate).
- name: Resolve crates
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rainix-copy-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
# No Foundry build cache here on purpose: this is a clean-build determinism
# check, so out/ must be regenerated fresh — and caching only cache/ (not
# out/) gives no real speedup, since forge recompiles to rebuild the
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rainix-manual-sol-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
# Cache Foundry's incremental compilation cache + artifacts so unchanged
# contracts aren't recompiled (forge build is the dominant CI cost).
- name: Cache Foundry build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rainix-rs-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
- uses: rainlanguage/rainix/.github/actions/rust-cache@main
- run: nix develop github:rainlanguage/rainix#rust-shell -c rainix-rs-static
# Run the rainix pre-commit hook bundle (taplo, the nix hooks, yamlfmt,
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rainix-rs-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
gc-max-store-size-macos: 1G
- uses: rainlanguage/rainix/.github/actions/rust-cache@main
- run: nix develop github:rainlanguage/rainix#rust-shell -c cargo test
1 change: 0 additions & 1 deletion .github/workflows/rainix-rs-wasm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
- uses: rainlanguage/rainix/.github/actions/rust-cache@main
- run: nix develop github:rainlanguage/rainix#rust-shell -c bash -c "CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER=wasm-bindgen-test-runner cargo test --target wasm32-unknown-unknown --workspace"
1 change: 0 additions & 1 deletion .github/workflows/rainix-rs-wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
- uses: rainlanguage/rainix/.github/actions/rust-cache@main
- run: nix develop github:rainlanguage/rainix#rust-shell -c cargo build -r --target wasm32-unknown-unknown --lib --workspace
1 change: 0 additions & 1 deletion .github/workflows/rainix-sol-legal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
- name: Install soldeer dependencies
if: hashFiles('soldeer.lock') != ''
run: nix develop github:rainlanguage/rainix#sol-shell -c forge soldeer install
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rainix-sol-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
# Cache Foundry's incremental compilation cache + artifacts so unchanged
# contracts aren't recompiled (forge build is the dominant CI cost).
- name: Cache Foundry build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rainix-sol-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
# Cache Foundry's incremental compilation cache + artifacts so unchanged
# contracts aren't recompiled (forge build is the dominant CI cost).
- name: Cache Foundry build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rainix-subgraph-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
- run: nix develop github:rainlanguage/rainix#subgraph-shell -c subgraph-test
1 change: 0 additions & 1 deletion .github/workflows/rainix-vercel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ github.token }}
checkout: 'false'
- uses: rainlanguage/rainix/.github/actions/rust-cache@main
with:
Expand Down
Loading