Skip to content

Commit 97bc434

Browse files
committed
Revert "Use nix-portable directly in CI"
This reverts commit e0d5776.
1 parent e0d5776 commit 97bc434

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
permissions:
1010
contents: write
1111

12+
env:
13+
NIX_CONFIG: experimental-features = nix-command flakes
14+
1215
jobs:
1316
bundle:
1417
name: Bundle ${{ matrix.pretty_name }}
@@ -29,19 +32,25 @@ jobs:
2932
- name: Checkout sources
3033
uses: actions/checkout@v4
3134

32-
- name: Download nix-portable
33-
run: |
34-
set -euo pipefail
35-
curl -L https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable-$(uname -m) -o nix-portable
36-
chmod +x nix-portable
35+
- name: Install Nix
36+
uses: DeterminateSystems/nix-installer-action@v12
37+
with:
38+
extra-conf: |
39+
keep-outputs = true
40+
keep-derivations = true
41+
42+
- name: Enable Nix cache
43+
uses: DeterminateSystems/magic-nix-cache-action@v4
44+
with:
45+
use-flakehub: false
3746

3847
- name: Build Neovim
39-
run: ./nix-portable nix build .#nvim
48+
run: nix build .#nvim
4049

4150
- name: Bundle Neovim
4251
run: |
4352
rm -rf bundle
44-
./nix-portable nix bundle --bundler github:DavHau/nix-portable#zstd-max -o bundle .#nvim
53+
nix bundle --bundler github:DavHau/nix-portable#zstd-max -o bundle .#nvim
4554
4655
- name: Package bundle
4756
run: |

0 commit comments

Comments
 (0)