Skip to content

Commit d2293fb

Browse files
committed
ci: enable experimental installer tests
1 parent 2cbbb63 commit d2293fb

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,19 @@ jobs:
135135
- scenario: on ubuntu
136136
runs-on: ubuntu-24.04
137137
os: linux
138+
experimental-installer: false
138139
- scenario: on macos
139140
runs-on: macos-14
140141
os: darwin
142+
experimental-installer: false
143+
- scenario: on ubuntu (experimental)
144+
runs-on: ubuntu-24.04
145+
os: linux
146+
experimental-installer: true
147+
- scenario: on macos (experimental)
148+
runs-on: macos-14
149+
os: darwin
150+
experimental-installer: true
141151
name: installer test ${{ matrix.scenario }}
142152
runs-on: ${{ matrix.runs-on }}
143153
steps:
@@ -149,11 +159,22 @@ jobs:
149159
path: out
150160
- name: Looking up the installer tarball URL
151161
id: installer-tarball-url
152-
run: echo "installer-url=file://$GITHUB_WORKSPACE/out" >> "$GITHUB_OUTPUT"
162+
run: |
163+
echo "installer-url=file://$GITHUB_WORKSPACE/out" >> "$GITHUB_OUTPUT"
164+
TARBALL_PATH="$(find "$GITHUB_WORKSPACE/out" -name 'nix*.tar.xz' -print | head -n 1)"
165+
echo "tarball-path=file://$TARBALL_PATH" >> "$GITHUB_OUTPUT"
153166
- uses: cachix/install-nix-action@v31
167+
if: ${{ !matrix.experimental-installer }}
154168
with:
155169
install_url: ${{ format('{0}/install', steps.installer-tarball-url.outputs.installer-url) }}
156170
install_options: ${{ format('--tarball-url-prefix {0}', steps.installer-tarball-url.outputs.installer-url) }}
171+
- uses: ./.github/actions/install-nix-action
172+
if: ${{ matrix.experimental-installer }}
173+
with:
174+
dogfood: false
175+
experimental-installer: true
176+
tarball_url: ${{ steps.installer-tarball-url.outputs.tarball-path }}
177+
github_token: ${{ secrets.GITHUB_TOKEN }}
157178
- run: sudo apt install fish zsh
158179
if: matrix.os == 'linux'
159180
- run: brew install fish

0 commit comments

Comments
 (0)