fix: bundle extensions directory for memory-core plugin #39
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
| name: Cache Only | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| cache-only: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v13 | |
| - name: Wait for Garnix checks | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const waitMinutes = 30 | |
| const intervalMs = 30_000 | |
| const deadline = Date.now() + waitMinutes * 60 * 1000 | |
| while (true) { | |
| const { data } = await github.rest.checks.listForRef({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| ref: context.sha, | |
| }) | |
| const garnix = data.check_runs.find((run) => run.name === 'All Garnix checks') | |
| if (garnix && garnix.status === 'completed') { | |
| if (garnix.conclusion !== 'success') { | |
| core.setFailed(`Garnix checks not successful: ${garnix.conclusion}`) | |
| } | |
| break | |
| } | |
| if (Date.now() > deadline) { | |
| core.setFailed('Timed out waiting for Garnix checks') | |
| break | |
| } | |
| await new Promise((resolve) => setTimeout(resolve, intervalMs)) | |
| } | |
| - name: Fail fast on cache misses | |
| env: | |
| NIX_CONFIG: | | |
| max-jobs = 0 | |
| builders = | |
| fallback = false | |
| run: | | |
| nix build --no-link --accept-flake-config \ | |
| .#packages.aarch64-darwin.clawdbot \ | |
| .#packages.aarch64-darwin.clawdbot-gateway \ | |
| .#packages.aarch64-darwin.clawdbot-tools \ | |
| .#packages.aarch64-darwin.clawdbot-app \ | |
| .#packages.x86_64-linux.clawdbot \ | |
| .#packages.x86_64-linux.clawdbot-gateway \ | |
| .#packages.x86_64-linux.clawdbot-tools \ | |
| .#checks.aarch64-darwin.gateway \ | |
| .#checks.x86_64-linux.gateway \ | |
| .#checks.x86_64-linux.gateway-tests \ | |
| .#checks.x86_64-linux.config-options |