mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
ci: update github workflows
This commit is contained in:
parent
c170d27234
commit
7474a703ea
2 changed files with 41 additions and 31 deletions
20
.github/workflows/cachix.yml
vendored
20
.github/workflows/cachix.yml
vendored
|
|
@ -1,17 +1,25 @@
|
|||
name: "Build ci.nix and push to cachix"
|
||||
name: Build ci.nix and push to cachix
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
cachix:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.4
|
||||
- uses: cachix/install-nix-action@v13
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v17
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-22.05
|
||||
- uses: cachix/cachix-action@v10
|
||||
|
||||
- name: Setup cachix
|
||||
uses: cachix/cachix-action@v10
|
||||
with:
|
||||
name: nix-on-droid
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
- run: nix-build ci.nix
|
||||
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
||||
|
||||
- name: Build ci.nix
|
||||
run: nix-build ci.nix
|
||||
|
|
|
|||
20
.github/workflows/fakedroid-odt.yml
vendored
20
.github/workflows/fakedroid-odt.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: 'run on-device-tests with fakedroid'
|
||||
name: Run on-device-tests with fakedroid
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
|
@ -7,28 +7,30 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/checkout@v2.4.0
|
||||
|
||||
- uses: cachix/install-nix-action@v15
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v17
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-22.05
|
||||
extra_nix_config: "experimental-features = nix-command"
|
||||
|
||||
- uses: cachix/cachix-action@v10
|
||||
- name: Setup cachix
|
||||
uses: cachix/cachix-action@v10
|
||||
with:
|
||||
name: nix-on-droid
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
||||
|
||||
- name: init
|
||||
- name: Initialize fakedroid
|
||||
run: tests/fakedroid.sh echo INIT
|
||||
|
||||
- name: test
|
||||
- name: Run tests
|
||||
run: |
|
||||
tests/fakedroid.sh mkdir -p .cache/nix-on-droid-self-test
|
||||
tests/fakedroid.sh touch .cache/nix-on-droid-self-test/confirmation-granted
|
||||
tests/fakedroid.sh nix-on-droid on-device-test
|
||||
|
||||
- name: upload
|
||||
- name: Push to cachix
|
||||
if: always() && github.event_name != 'pull_request'
|
||||
run: tests/fakedroid.sh nix-shell -p cachix --run 'nix --extra-experimental-features nix-command path-info --all | cachix push nix-on-droid'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue