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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
jobs:
|
jobs:
|
||||||
cachix:
|
cachix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- name: Checkout repository
|
||||||
- uses: cachix/install-nix-action@v13
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install nix
|
||||||
|
uses: cachix/install-nix-action@v17
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-22.05
|
nix_path: nixpkgs=channel:nixos-22.05
|
||||||
- uses: cachix/cachix-action@v10
|
|
||||||
|
- name: Setup cachix
|
||||||
|
uses: cachix/cachix-action@v10
|
||||||
with:
|
with:
|
||||||
name: nix-on-droid
|
name: nix-on-droid
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
||||||
- run: nix-build ci.nix
|
|
||||||
|
- 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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
|
@ -7,28 +7,30 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/checkout@v2.4.0
|
- name: Install nix
|
||||||
|
uses: cachix/install-nix-action@v17
|
||||||
- uses: cachix/install-nix-action@v15
|
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-22.05
|
nix_path: nixpkgs=channel:nixos-22.05
|
||||||
extra_nix_config: "experimental-features = nix-command"
|
extra_nix_config: "experimental-features = nix-command"
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v10
|
- name: Setup cachix
|
||||||
|
uses: cachix/cachix-action@v10
|
||||||
with:
|
with:
|
||||||
name: nix-on-droid
|
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
|
run: tests/fakedroid.sh echo INIT
|
||||||
|
|
||||||
- name: test
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
tests/fakedroid.sh mkdir -p .cache/nix-on-droid-self-test
|
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 touch .cache/nix-on-droid-self-test/confirmation-granted
|
||||||
tests/fakedroid.sh nix-on-droid on-device-test
|
tests/fakedroid.sh nix-on-droid on-device-test
|
||||||
|
|
||||||
- name: upload
|
- name: Push to cachix
|
||||||
if: always() && github.event_name != 'pull_request'
|
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'
|
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