chore(deps): bump cachix/install-nix-action from 23 to 24 #87
Workflow file for this run
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: "Build scraper" | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v24 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm" | |
- name: Cache on Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: flake-programs-sqlite | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Cache build result on GitHub | |
uses: actions/cache@v3 | |
with: | |
path: updater.bundle | |
key: ${{ runner.os }}-bundle-${{ hashFiles('**/flake.lock') }}-${{ hashFiles('**/*.nix') }}-${{ hashFiles('**/*.nim*') }} | |
- name: Build and Bundle | |
run: | | |
nix build .#updater | |
nix bundle -o updater.bundle.lnk .#packages.x86_64-linux.updater && cp $(readlink updater.bundle.lnk) updater.bundle && chmod u+w updater.bundle | |
- name: Smoke test | |
run: | | |
echo {} > ${{ runner.temp }}/sources.json | |
echo {} > ${{ runner.temp }}/latest.json | |
nix run .#updater -- --dir:${{ runner.temp }} --channel:https://releases.nixos.org/nixos/20.03/nixos-20.03.2400.ff1b66eaea4 | |
cat ${{ runner.temp }}/sources.json | |
[ `nix eval --impure nixpkgs#lib.importJSON --apply "x : (x ${{ runner.temp }}/sources.json).ff1b66eaea4399d297abda7419a330239842d715.programs_sqlite_hash"` = '"6097c544f012fc21f8cff9a6305ebab335d148e6385d7288a612e10c3cc82df0"' ] | |
- name: Integration test | |
run: nix build --override-input nixpkgs "github:NixOS/nixpkgs?rev=04f574a1c0fde90b51bf68198e2297ca4e7cccf4" .#checks.x86_64-linux.vmtest |