Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add cache to CI #27

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ on:
- main

jobs:
# Mac tests and Ubuntu tests are separated so that Ubuntu tests can
# run on both PRs and main; and Mac tests only on main branch.
ubuntu_tests:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv

- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
Expand All @@ -42,9 +43,7 @@ jobs:
curl -s --unix-socket $HOME/.colima/default/docker.sock http/_ping

- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
Expand Down