From 18ec4bf9f1bc2f234a2fc2498095e497aefbd9a9 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 3 Feb 2024 21:48:05 -0700 Subject: [PATCH] Separate android into its own job --- .gitea/workflows/android.yaml | 11 +++++++++++ .gitea/workflows/tests.yaml | 3 --- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/android.yaml diff --git a/.gitea/workflows/android.yaml b/.gitea/workflows/android.yaml new file mode 100644 index 0000000..8c18199 --- /dev/null +++ b/.gitea/workflows/android.yaml @@ -0,0 +1,11 @@ +on: + push: + branches: + - master +jobs: + build: + name: Install + runs-on: nixos-x86_64-linux + steps: + - name: android-build + run: nix develop --impure --command bash -c 'export GRADLE_USER_HOME=$PWD; export HOME=$PWD; cd android; ./gradlew assembleDebug' diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 7816b41..d851494 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -1,7 +1,6 @@ name: Tests on: pull_request: - env: NIXPKGS_ALLOW_UNFREE: 1 @@ -27,5 +26,3 @@ jobs: run: nix develop --impure --command bash -c 'export HOME=$PWD; prettier . --check' - name: test run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn run test --no-watchman' - - name: android-build - run: nix develop --impure --command bash -c 'export GRADLE_USER_HOME=$PWD; cd android; ./gradlew assembleDebug'