Skip to content

Commit d79cab0

Browse files
chore: use shared rainix nix+cachix composites in js-bindings CI
The rainix-rs reusable callers (static, test) gain `secrets: inherit` so the shared Cachix substituter is reachable. The js-bindings job drops its hand-rolled nix-quick-install + cache-nix preamble (which omitted Cachix) for the rainix nix-cachix-setup + rust-cache composites that every rainix reusable uses. The build/test/docs commands stay: they are dotrain flake devShell tasks (npm + wasm-bindgen CLI over the js-api crate, mocha tests, api-extractor docs) with no matching rainix reusable workflow. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent cff67b3 commit d79cab0

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/rainix.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ on: [push]
33
jobs:
44
static:
55
uses: rainlanguage/rainix/.github/workflows/rainix-rs-static.yaml@main
6+
secrets: inherit
67
test:
78
uses: rainlanguage/rainix/.github/workflows/rainix-rs-test.yaml@main
9+
secrets: inherit
810
js-bindings:
911
runs-on: ubuntu-latest
1012
steps:
11-
- uses: actions/checkout@v4
12-
- uses: nixbuild/nix-quick-install-action@v30
13+
# Shared rainix nix + cachix CI preamble (checkout, nix-quick-install,
14+
# Cachix, cache-nix-action) — the pinned action SHAs live once in the
15+
# composite, matching every rainix reusable. The build/test/docs commands
16+
# below are dotrain-specific flake devShell tasks (npm + wasm-bindgen CLI
17+
# over the js-api crate, mocha tests, api-extractor docs), so there is no
18+
# rainix reusable workflow that runs them; only the preamble is shared.
19+
- uses: rainlanguage/rainix/.github/actions/nix-cachix-setup@main
1320
with:
14-
nix_conf: |
15-
keep-env-derivations = true
16-
keep-outputs = true
17-
- name: Restore and save Nix store
18-
uses: nix-community/cache-nix-action@v6
19-
with:
20-
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
21-
restore-prefixes-first-match: nix-${{ runner.os }}-
22-
gc-max-store-size-linux: 1G
21+
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
22+
- uses: rainlanguage/rainix/.github/actions/rust-cache@main
2323
- run: nix develop -c build-js-bindings
2424
- run: nix develop -c test-js-bindings
2525
- run: nix develop -c js-bindings-docs

0 commit comments

Comments
 (0)