From 7ef6e794eab9c9a7805978fa5ccdcdb9fc9c58e5 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Wed, 10 Apr 2024 18:01:49 +0200 Subject: [PATCH] debug nixcached --- .github/workflows/nix.yml | 42 +++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 11a7b74..9686b31 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -4,33 +4,37 @@ on: [push] jobs: build: - runs-on: ubuntu-latest-8-cores + # runs-on: ubuntu-latest-8-cores + runs-on: ubuntu-latest permissions: contents: 'read' id-token: 'write' steps: - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@v10 + # - uses: DeterminateSystems/nix-installer-action@v10 - name: Authenticate to Google Cloud Platform uses: google-github-actions/auth@v2 with: project_id: yorick-dev-416917 workload_identity_provider: projects/752785843927/locations/global/workloadIdentityPools/github/providers/github-actions-workload-prvdr service_account: github-actions-service-account@yorick-dev-416917.iam.gserviceaccount.com - - name: Set up cache - uses: zombiezen/setup-nix-cache-action@v0.3.2 - with: - substituters: gs://replicate-nix-cache-dev - secret_keys: ${{ secrets.NIX_PRIVATE_KEY }} - use_nixcached: true - - name: Get ssh key from secret - env: - GIT_SSH_KEY: ${{ secrets.GIT_SSH_KEY }} - run: | - mkdir -p ~/.ssh - cat > ~/.ssh/id_ed25519 <<< "$GIT_SSH_KEY" - chmod 0600 ~/.ssh/id_ed25519 - - run: nix build --accept-flake-config .#cog-triton-builder -o cog-triton-builder - - run: nix build --accept-flake-config .#cog-triton-runner-86 -o cog-triton-runner-86 - - run: nix build --accept-flake-config .#cog-triton-runner-80 -o cog-triton-runner-80 - - run: nix build --accept-flake-config .#cog-triton-runner-90 -o cog-triton-runner-90 + - run: | + echo hello > test-file + gsutil cp test-file.txt gs://replicate-nix-cache-dev/ + # - name: Set up cache + # uses: zombiezen/setup-nix-cache-action@v0.3.2 + # with: + # substituters: gs://replicate-nix-cache-dev + # secret_keys: ${{ secrets.NIX_PRIVATE_KEY }} + # use_nixcached: true + # - name: Get ssh key from secret + # env: + # GIT_SSH_KEY: ${{ secrets.GIT_SSH_KEY }} + # run: | + # mkdir -p ~/.ssh + # cat > ~/.ssh/id_ed25519 <<< "$GIT_SSH_KEY" + # chmod 0600 ~/.ssh/id_ed25519 + # - run: nix build --accept-flake-config .#cog-triton-builder -o cog-triton-builder + # - run: nix build --accept-flake-config .#cog-triton-runner-86 -o cog-triton-runner-86 + # - run: nix build --accept-flake-config .#cog-triton-runner-80 -o cog-triton-runner-80 + # - run: nix build --accept-flake-config .#cog-triton-runner-90 -o cog-triton-runner-90