ci: start nix-shell once before the build #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "colmena build" | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update and Upgrade system | |
run: | | |
DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update -q -y && sudo apt-get upgrade -q -y | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-24.05 | |
- uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- name: start nix-shell once | |
run: nix-shell --run "echo \"success\"" | |
- name: colmena build | |
run: nix-shell --run "colmena build -v" |