Skip to content

Commit 43653c6

Browse files
committed
ci: enable experimental installer tests
1 parent 6b9e0a6 commit 43653c6

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
@@ -110,9 +110,19 @@ jobs:
110110
- scenario: on ubuntu
111111
runs-on: ubuntu-24.04
112112
os: linux
113+
experimental: false
113114
- scenario: on macos
114115
runs-on: macos-14
115116
os: darwin
117+
experimental: false
118+
- scenario: on ubuntu (experimental)
119+
runs-on: ubuntu-24.04
120+
os: linux
121+
experimental: true
122+
- scenario: on macos (experimental)
123+
runs-on: macos-14
124+
os: darwin
125+
experimental: true
116126
name: installer test ${{ matrix.scenario }}
117127
runs-on: ${{ matrix.runs-on }}
118128
steps:
@@ -124,11 +134,22 @@ jobs:
124134
path: out
125135
- name: Looking up the installer tarball URL
126136
id: installer-tarball-url
127-
run: echo "installer-url=file://$GITHUB_WORKSPACE/out" >> "$GITHUB_OUTPUT"
137+
run: |
138+
echo "installer-url=file://$GITHUB_WORKSPACE/out" >> "$GITHUB_OUTPUT"
139+
TARBALL_PATH="$(find "$GITHUB_WORKSPACE/out" -name 'nix*.tar.xz' -print | head -n 1)"
140+
echo "tarball-path=file://$TARBALL_PATH" >> "$GITHUB_OUTPUT"
128141
- uses: cachix/install-nix-action@v31
142+
if: ${{ !matrix.experimental }}
129143
with:
130144
install_url: ${{ format('{0}/install', steps.installer-tarball-url.outputs.installer-url) }}
131145
install_options: ${{ format('--tarball-url-prefix {0}', steps.installer-tarball-url.outputs.installer-url) }}
146+
- uses: ./.github/actions/install-nix-action
147+
if: ${{ matrix.experimental }}
148+
with:
149+
dogfood: false
150+
experimental-installer: true
151+
tarball_url: ${{ steps.installer-tarball-url.outputs.tarball-path }}
152+
github_token: ${{ secrets.GITHUB_TOKEN }}
132153
- run: sudo apt install fish zsh
133154
if: matrix.os == 'linux'
134155
- run: brew install fish

0 commit comments

Comments
 (0)