From 77ff3697546d8d6be276e98998edb70892bf84fb Mon Sep 17 00:00:00 2001 From: Mathias Mogensen Date: Sun, 11 Dec 2022 20:48:06 +0100 Subject: [PATCH] cicd: split job into builds --- .github/workflows/ci.yml | 56 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f98c586d..b35f990e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,7 @@ jobs: verbose: true file: coverage/lcov.info - build: # Dynamically build for dev or prod depending on the branch + build_android: if: ${{ github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master' }} needs: [analyze, test] runs-on: macos-latest @@ -186,6 +186,53 @@ jobs: # Prerequisites for building iOS # https://docs.github.com/en/actions/deployment/deploying-xcode-applications/installing-an-apple-certificate-on-macos-runners-for-xcode-development + build_ios: + if: ${{ github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master' }} + needs: [analyze, test] + runs-on: macos-latest + timeout-minutes: 60 + steps: + - name: Fetch code from cache + id: code-cache + uses: actions/cache@v3 + with: + path: . + key: code-cache-${{ github.sha }} + restore-keys: | + code-cache-${{ github.sha }} + code-cache- + code-cache + + - name: Create release notes file + run: | + cat > release_notes.txt <