ci: Install sqlite-better-trigram for all arch

This commit is contained in:
Abdullah Atta
2024-11-19 15:16:21 +05:00
parent d67b78d86e
commit ad1e3f2c67
2 changed files with 36 additions and 0 deletions

View File

@@ -136,6 +136,12 @@ jobs:
npm ci --ignore-scripts --prefer-offline --no-audit npm ci --ignore-scripts --prefer-offline --no-audit
npm run bootstrap -- --scope=desktop npm run bootstrap -- --scope=desktop
- name: Install sqlite-better-trigram for all arch
run: |
npm i --cpu arm64 sqlite-better-trigram
npm i --cpu x64 sqlite-better-trigram
working-directory: ./apps/desktop
- name: Install provisioning profile - name: Install provisioning profile
run: echo "${{ secrets.MAC_PROVISIONING_PROFILE }}" | base64 --decode > embedded.provisionprofile run: echo "${{ secrets.MAC_PROVISIONING_PROFILE }}" | base64 --decode > embedded.provisionprofile
working-directory: ./apps/desktop working-directory: ./apps/desktop
@@ -212,6 +218,12 @@ jobs:
npm ci --ignore-scripts --prefer-offline --no-audit npm ci --ignore-scripts --prefer-offline --no-audit
npm run bootstrap -- --scope=desktop npm run bootstrap -- --scope=desktop
- name: Install sqlite-better-trigram for all arch
run: |
npm i --cpu arm64 sqlite-better-trigram
npm i --cpu x64 sqlite-better-trigram
working-directory: ./apps/desktop
- name: Build Electron wrapper - name: Build Electron wrapper
run: npx nx run release --project @notesnook/desktop run: npx nx run release --project @notesnook/desktop
working-directory: ./apps/desktop working-directory: ./apps/desktop
@@ -272,6 +284,12 @@ jobs:
npm ci --ignore-scripts --prefer-offline --no-audit npm ci --ignore-scripts --prefer-offline --no-audit
npm run bootstrap -- --scope=desktop npm run bootstrap -- --scope=desktop
- name: Install sqlite-better-trigram for all arch
run: |
npm i --cpu arm64 sqlite-better-trigram
npm i --cpu x64 sqlite-better-trigram
working-directory: ./apps/desktop
- name: Build - name: Build
run: npx nx run release --project @notesnook/desktop run: npx nx run release --project @notesnook/desktop

View File

@@ -64,6 +64,12 @@ jobs:
npm run bootstrap -- --scope=desktop npm run bootstrap -- --scope=desktop
npx nx run release --project @notesnook/desktop npx nx run release --project @notesnook/desktop
- name: Install sqlite-better-trigram for all arch
run: |
npm i --cpu arm64 sqlite-better-trigram
npm i --cpu x64 sqlite-better-trigram
working-directory: ./apps/desktop
- name: Build app - name: Build app
run: | run: |
yarn electron-builder --mac --dir --arm64 --x64 yarn electron-builder --mac --dir --arm64 --x64
@@ -111,6 +117,12 @@ jobs:
npm run bootstrap -- --scope=desktop npm run bootstrap -- --scope=desktop
npx nx run release --project @notesnook/desktop npx nx run release --project @notesnook/desktop
- name: Install sqlite-better-trigram for all arch
run: |
npm i --cpu arm64 sqlite-better-trigram
npm i --cpu x64 sqlite-better-trigram
working-directory: ./apps/desktop
- name: Build app - name: Build app
run: | run: |
yarn electron-builder --linux --dir --arm64 --x64 yarn electron-builder --linux --dir --arm64 --x64
@@ -145,6 +157,12 @@ jobs:
npm run bootstrap -- --scope=desktop npm run bootstrap -- --scope=desktop
npx nx run release --project @notesnook/desktop npx nx run release --project @notesnook/desktop
- name: Install sqlite-better-trigram for all arch
run: |
npm i --cpu arm64 sqlite-better-trigram
npm i --cpu x64 sqlite-better-trigram
working-directory: ./apps/desktop
- name: Build app - name: Build app
run: | run: |
npx cross-env NOTESNOOK_STAGING=true yarn electron-builder --win --dir --arm64 --x64 npx cross-env NOTESNOOK_STAGING=true yarn electron-builder --win --dir --arm64 --x64