From b42ffe7bbe737a75ad0ad05d1d934898f1e310fd Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Thu, 16 Nov 2023 23:50:17 +0000 Subject: [PATCH] Overwrite runner arch for magic Nix cache --- .gitea/workflows/ci.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 4b5e566..38c3661 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -8,14 +8,31 @@ jobs: check: name: Check Nix flake runs-on: ubuntu-22.04 + env: + ACTIONS_STEP_DEBUG: true steps: - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v23 - - uses: DeterminateSystems/magic-nix-cache-action@main + with: + # Gitea will supply a token in GITHUB_TOKEN, which this action will + # try to pass to Nix when downloading from GitHub + github_access_token: ${{ secrets.GH_PULL_TOKEN }} + extra_nix_config: | + # Make sure we're using sandbox + sandbox-fallback = false + - uses: DetermuinateSystems/magic-nix-cache-action@main + env: + # Arch is amd64 in Gitea actions, this forms the download path for the cache + RUNNER_ARCH: X64 - name: Write agenix secrets key to file env: KEY: ${{ secrets.AGENIX_SECRETS_KEY }} run: printf "$KEY" > .keys/ci.key - - name: Check flake - run: nix flake check + - name: test + run: | + nix build ".#monocraft'" + # nix copy --to 'http://127.0.0.1:37515/?compression=zstd¶llel-compression=true' ".#monocraft'" + ln -s $(which nix) /usr/local/bin/nix + # - name: Check flake + # run: nix flake check