Skip to content

Commit

Permalink
fix: nix flake build freezes in github action, so try magic nix cache…
Browse files Browse the repository at this point in the history
… + switch to nixos-stable channel

Fix from NixOS/nixpkgs#160289
  • Loading branch information
piotr-semenov committed May 10, 2024
1 parent 288f6c1 commit 7588393
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
paths-ignore: [ "*.md" ]

jobs:
Build-VSIX:
Compile-All:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
Expand All @@ -23,6 +23,8 @@ jobs:
restore-keys: |
${{ runner.os }}-vagrant-
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Show Vagrant version
run: vagrant --version

Expand Down
10 changes: 7 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ Vagrant.configure("2") do |config|

config.vm.provision "shell", privileged: false, inline: <<-'SHELL'
cd /vagrant/
echo "statix check &&\
nix flake check --impure &&\
cp \$(nix build --impure --no-link --print-out-paths)/parigp* ./syntaxes/" |\
nix --version
sudo systemctl stop nix-daemon.socket nix-daemon && \
sudo systemctl start nix-daemon.socket nix-daemon && \
nix --extra-experimental-features nix-command store gc && \
echo "statix check && \
nix flake check --impure && \
cp \$(nix build --impure --no-link --print-out-paths)/parigp* ./syntaxes/" | \
nix-shell --run bash
SHELL
end
2 changes: 1 addition & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
description = "Builds TextMate grammar for latest version of PARI/GP";

inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-stable";

outputs = { self, nixpkgs }:
let
Expand Down

0 comments on commit 7588393

Please sign in to comment.