diff --git a/.github/workflows/manual-sol-artifacts.yaml b/.github/workflows/manual-sol-artifacts.yaml index e06262e7..4f1b2dec 100644 --- a/.github/workflows/manual-sol-artifacts.yaml +++ b/.github/workflows/manual-sol-artifacts.yaml @@ -16,7 +16,7 @@ jobs: deploy: runs-on: ubuntu-latest env: - DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }} + DEPLOYMENT_KEY: ${{ secrets.PRIVATE_KEY }} steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/rainix.yaml b/.github/workflows/rainix.yaml index fded9598..05d8d622 100644 --- a/.github/workflows/rainix.yaml +++ b/.github/workflows/rainix.yaml @@ -10,22 +10,33 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} env: - DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }} + DEPLOYMENT_KEY: ${{ secrets.PRIVATE_KEY }} steps: - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v4 - - uses: DeterminateSystems/magic-nix-cache-action@v2 - + - uses: nixbuild/nix-quick-install-action@v30 + with: + nix_conf: | + keep-env-derivations = true + keep-outputs = true + - uses: cachix/cachix-action@v15 + continue-on-error: true + with: + name: rainlanguage + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + useDaemon: false + - name: Restore and save Nix store + uses: nix-community/cache-nix-action@v6 + with: + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + restore-prefixes-first-match: nix-${{ runner.os }}- + gc-max-store-size-linux: 1G - run: nix develop --command rainix-sol-prelude - - name: Run ${{ matrix.task }} env: ETH_RPC_URL: ${{ secrets.CI_DEPLOY_RPC_URL }} ETHERSCAN_API_KEY: ${{ secrets.EXPLORER_VERIFICATION_KEY }} DEPLOY_VERIFIER: 'etherscan' - run: nix develop --command ${{ matrix.task }} \ No newline at end of file + run: nix develop --command ${{ matrix.task }}