Skip to content

Commit

Permalink
[Issue-677] Optimize build steps with caches
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Jun 28, 2023
1 parent f3e3093 commit a83e4d7
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions .github/workflows/push-koni-dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,36 @@ jobs:
build_preview:
name: Build Preview
runs-on: mac-worker
env:
GH_PAT: ${{ secrets.GH_PAT }}
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
KS_PASSWORD: ${{ secrets.KS_PASSWORD }}
NEXTCLOUD_CONFIG: ${{ secrets.NEXTCLOUD_CONFIG }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
COMMIT_MESSAGE: ${{ github.event.pull_request.title }}
REF_NAME: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
- name: Build Preview Version
env:
GH_PAT: ${{ secrets.GH_PAT }}
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
KS_PASSWORD: ${{ secrets.KS_PASSWORD }}
NEXTCLOUD_CONFIG: ${{ secrets.NEXTCLOUD_CONFIG }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
COMMIT_MESSAGE: ${{ github.event.pull_request.title }}
REF_NAME: ${{ github.ref_name }}
run: |
yarn install --immutable | grep -v 'YN0013'
node ./scripts/autocheck.mjs
cd ./android
node ../scripts/build-android.mjs
cd ../ios
node ../scripts/build-ios.mjs

- name: Cache Dependencies
uses: actions/cache@v2
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install --immutable | grep -v 'YN0013'

- name: Autocheck
run: node ./scripts/autocheck.mjs

- name: Build Android
run: cd ./android && node ../scripts/build-android.mjs

- name: Build iOS
run: cd ./ios && node ../scripts/build-ios.mjs

0 comments on commit a83e4d7

Please sign in to comment.