diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index f2a33a0..03b05fd 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -10,7 +10,7 @@ on: paths-ignore: [ "*.md" ] jobs: - Build-VSIX: + Compile-All: runs-on: macos-12 steps: - uses: actions/checkout@v4 @@ -23,6 +23,8 @@ jobs: restore-keys: | ${{ runner.os }}-vagrant- + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Show Vagrant version run: vagrant --version diff --git a/Vagrantfile b/Vagrantfile index 17c8546..e4d30a6 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 diff --git a/flake.lock b/flake.lock index a5964e1..c1db0ae 100644 --- a/flake.lock +++ b/flake.lock @@ -11,7 +11,7 @@ }, "original": { "owner": "nixos", - "ref": "nixos-unstable", + "ref": "nixos-stable", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 9c5fcff..3a772b2 100644 --- a/flake.nix +++ b/flake.nix @@ -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