From 6c13d402fb312a6223d6475465961743da3fc141 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 23 Nov 2020 10:35:42 -0800 Subject: [PATCH] ci: update install-nix-action to v12 This fixes the `Unable to process command '::add-path::/nix/var/nix/profiles/per-user/runner/profile/bin' successfully.` errors (this was deprecated by GitHub). Also fix alignment, to ease copy-pasting. --- .github/workflows/ci.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a709162..b0a6afd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,18 +9,22 @@ jobs: pedantry: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install Nix - uses: cachix/install-nix-action@v9 - - name: Cargo Pedantry - run: nix-shell --run checkPhase -A mozilla-rust-overlay + - uses: actions/checkout@v2 + - name: Install Nix + uses: cachix/install-nix-action@v12 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Cargo Pedantry + run: nix-shell --run checkPhase -A mozilla-rust-overlay checkPhase: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install Nix - uses: cachix/install-nix-action@v9 + uses: cachix/install-nix-action@v12 + with: + nix_path: nixpkgs=channel:nixos-unstable - name: Set up git run: | git config --global user.email "ofborg@example.com" @@ -33,6 +37,8 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install Nix - uses: cachix/install-nix-action@v9 + uses: cachix/install-nix-action@v12 + with: + nix_path: nixpkgs=channel:nixos-unstable - name: nix-build run: nix-build -A ofborg.rs -A ofborg.php