Skip to content

Commit

Permalink
different bash shell
Browse files Browse the repository at this point in the history
Signed-off-by: Thing-han, Lim <[email protected]>
  • Loading branch information
potsrevennil committed Sep 18, 2024
1 parent 17afb81 commit 44b10fc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/actions/setup-nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,29 @@ runs:
- name: Pre-check nix
id: pre-check-nix
continue-on-error: true
shell: bash -e -o pipefail {0}
shell: bash -leo pipefail {0}
run: |
nix --version
nix config show | grep -E "^trusted-users = .*$USER"
nix config show | grep -E "^experimental-features = .*flakes"
nix config show | grep -E "^experimental-features = .*nix-command"
- name: Install nix
if: needs.pre-check-nix.result != 'success'

shell: bash
if: steps.pre-check-nix.outcome == 'failure'
shell: bash -leo pipefail {0}
run: |
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm \
--extra-conf "trusted-users = root ${USER:-}" \
--extra-conf "experimental-features = nix-command flakes" \
--extra-conf "experimental-features = nix-command flakes"
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
- name: Post-check nix
shell: bash
continue-on-error: true
shell: bash -leo pipefail {0}
run: |
nix config check
- uses: DeterminateSystems/magic-nix-cache-action@v8
continue-on-error: true
- name: Prepare nix dev shell
shell: nix develop --quiet .#${{ inputs.devShell }} -c bash -e {0}
run: |
Expand Down

0 comments on commit 44b10fc

Please sign in to comment.