Skip to content

Commit

Permalink
chore: use magic-nix-cache-action
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed Dec 9, 2023
1 parent 6e84dc8 commit 19ceb35
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,24 @@ jobs:
with:
path: ~/repo-cache
key: repo-cache-${{ runner.os }}-nixpkgs-${{ env.cache-version }}
- uses: cachix/install-nix-action@v24
# - uses: cachix/install-nix-action@v24
# with:
# nix_path: nixpkgs=./nixpkgs/default.nix
# extra_nix_config: |
# trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
# extra-substituters = https://cache.iog.io
- uses: DeterminateSystems/nix-installer-action@v9
with:
nix_path: nixpkgs=./nixpkgs/default.nix
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
extra-substituters = https://cache.iog.io
- uses: tweag/configure-bazel-remote-cache-auth@v0
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
bazelrc_path: .bazelrc.auth
github-token: ${{ inputs.github_token }}
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: tweag/configure-bazel-remote-cache-auth@v0
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
bazelrc_path: .bazelrc.auth
- uses: ./.github/actions/set_tcp_keepalive_time
- uses: ./.github/actions/authenticate_github_api
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# - uses: ./.github/actions/authenticate_github_api
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure
run: |
case ${{ runner.os }} in
Expand Down

0 comments on commit 19ceb35

Please sign in to comment.