fix(local): run_local nix env guard and lexical-service bundling #89
Workflow file for this run
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
| # DO NOT EDIT — regenerate with `cargo x workflows` (from rust/cloud-storage). | |
| # Source: rust/cloud-storage/tools/xtask/crates/xtask_workflows/src/workflows/check_node_modules_nix.rs | |
| name: check node_modules nix | |
| 'on': | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - js/bun.lock | |
| - js/**/package.json | |
| - js/app/patches/** | |
| - nix-support/node_modules.nix | |
| - nix-support/node_modules-hashes.json | |
| - nix/tauri-desktop.nix | |
| - scripts/update-node-modules-hash.sh | |
| - flake.nix | |
| - flake.lock | |
| - '.github/workflows/check_node_modules_nix.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-linux-node-modules-nix: | |
| name: check Linux node_modules nix | |
| runs-on: namespace-profile-linux-small | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| clean: 'false' | |
| persist-credentials: 'false' | |
| - name: Setup Nix | |
| uses: './.github/actions/setup-nix' | |
| - name: Configure Cachix fallback | |
| uses: './.github/actions/setup-cachix' | |
| with: | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - name: verify js node_modules derivation is up to date | |
| run: nix build .#js-node-modules --no-link | |
| check-darwin-node-modules-nix: | |
| name: check Darwin node_modules nix | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| clean: 'false' | |
| persist-credentials: 'false' | |
| - name: Assert arm64 runner | |
| run: | | |
| set -euo pipefail | |
| if [ "$(uname -m)" != "arm64" ]; then | |
| echo "macOS node_modules checks must run on an arm64/aarch64 runner, got $(uname -m)" >&2 | |
| exit 1 | |
| fi | |
| shell: bash | |
| - name: Install Nix | |
| run: | | |
| set -euo pipefail | |
| if ! command -v nix >/dev/null 2>&1; then | |
| curl --http1.1 --retry 5 --retry-delay 5 --retry-all-errors \ | |
| --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \ | |
| sh -s -- install macos --no-confirm \ | |
| --extra-conf "experimental-features = nix-command flakes" \ | |
| --extra-conf "sandbox = false" \ | |
| --extra-conf "trusted-users = root runner" | |
| fi | |
| echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH" | |
| echo "NIX_REMOTE=daemon" >> "$GITHUB_ENV" | |
| export PATH="/nix/var/nix/profiles/default/bin:$PATH" | |
| export NIX_REMOTE=daemon | |
| nix --version | |
| shell: bash | |
| - name: Configure Cachix fallback | |
| uses: './.github/actions/setup-cachix' | |
| with: | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - name: verify js node_modules derivation is up to date | |
| run: nix build .#js-node-modules --no-link |