bootstrap: add prompt to bootstrap with flakes setup

This commit is contained in:
Tobias Happ 2022-10-03 15:19:39 +02:00
parent 5900404627
commit c0b87d967f
4 changed files with 109 additions and 24 deletions

View file

@ -3,7 +3,7 @@ on:
pull_request:
push:
jobs:
fakedroid-odt:
fakedroid-odt-channel:
runs-on: ubuntu-latest
steps:
@ -31,7 +31,7 @@ jobs:
--impure \
--out-link fakedroid
- name: Initialize fakedroid
- name: Initialize fakedroid for channel setup
run: ./fakedroid echo INIT
- name: Run tests
@ -43,3 +43,37 @@ jobs:
- name: Push to cachix
if: always() && github.event_name != 'pull_request'
run: ./fakedroid nix-shell -p cachix --run 'nix --extra-experimental-features nix-command path-info --all | cachix push nix-on-droid'
fakedroid-flakes:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v18
- name: Setup cachix
uses: cachix/cachix-action@v12
with:
name: nix-on-droid
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- name: Build fakedroid script
run: |
nix \
--log-format bar-with-logs \
--option keep-going true \
--show-trace \
build .#fakedroid \
--impure \
--out-link fakedroid
- name: Initialize fakedroid for flake setup
run: USE_FLAKE=1 ./fakedroid echo INIT
- name: Push to cachix
if: always() && github.event_name != 'pull_request'
run: ./fakedroid nix-shell -p cachix --run 'nix --extra-experimental-features nix-command path-info --all | cachix push nix-on-droid'