diff options
| author | Jules Aguillon | 2022-03-24 18:42:44 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-03-24 18:43:09 +0100 |
| commit | 0fb7150a0656c88abf278a3afd8021c1e6d2a04d (patch) | |
| tree | f224dc8b89ca651961f2894d9623c62dba181daf /.github/workflows/make-apk.yml | |
| parent | f3aa218de40a44eeaf1e7ec169bb2b3d4da526ad (diff) | |
| download | unexpected-keyboard-0fb7150a0656c88abf278a3afd8021c1e6d2a04d.tar.gz unexpected-keyboard-0fb7150a0656c88abf278a3afd8021c1e6d2a04d.zip | |
Revert to the previous CI
The new CI script doesn't work on forks.
This reverts commit f3aa218de40a44eeaf1e7ec169bb2b3d4da526ad.
This reverts commit 3373c59b903cfcccedf31278f9f18ea305e3a567.
Diffstat (limited to '.github/workflows/make-apk.yml')
| -rw-r--r-- | .github/workflows/make-apk.yml | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/.github/workflows/make-apk.yml b/.github/workflows/make-apk.yml index 6b3c47a..2fe3534 100644 --- a/.github/workflows/make-apk.yml +++ b/.github/workflows/make-apk.yml @@ -1,4 +1,4 @@ -name: Build debug apk +name: Make Apk CI on: workflow_dispatch: @@ -6,40 +6,29 @@ on: pull_request: jobs: - Make-apk: + Build-Apk: runs-on: ubuntu-latest steps: - name: Install nix uses: cachix/install-nix-action@v15 with: nix_path: nixpkgs=channel:nixos-unstable - - name: Setup nixbuild.net - uses: nixbuild/nixbuild-action@v9 + - uses: cachix/cachix-action@v10 with: - nixbuild_ssh_key: ${{ secrets.nixbuild_ssh_key }} - - name: Checkout repo + name: julow + signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + - name: Checkout Repo uses: actions/checkout@v2 - name: Cache debug certificate uses: actions/cache@v2 with: path: _build/debug.keystore key: debug-keystore - # Hopefully cached. - - name: Debug certificate - run: | - [[ -f _build/debug.keystore ]] || - nix-shell ./shell.nix --run 'make debug.keystore' - - name: Build - run: | - store=ssh-ng://eu.nixbuild.net - result=$( - nix build --json --eval-store auto --store $store \ - -f ./shell.nix debug-apk \ - | jq -r '.[0].outputs.out' - ) - nix copy --from $store $result - mkdir -p _build - cp $result/*.apk _build + - name: Run nix-shell and Make + uses: ZenithalHourlyRate/nix-shell-action@v4 + with: + file: shell.nix + script: make - name: Save debug apk uses: actions/upload-artifact@v2 with: |
