From ad1e3f2c672b01dc29e0ce18cc012ac512ccdb55 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 19 Nov 2024 15:16:21 +0500 Subject: [PATCH] ci: Install sqlite-better-trigram for all arch --- .github/workflows/desktop.publish.yml | 18 ++++++++++++++++++ .github/workflows/desktop.tests.yml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/.github/workflows/desktop.publish.yml b/.github/workflows/desktop.publish.yml index 73fe44fc5..89d706f0d 100644 --- a/.github/workflows/desktop.publish.yml +++ b/.github/workflows/desktop.publish.yml @@ -136,6 +136,12 @@ jobs: npm ci --ignore-scripts --prefer-offline --no-audit 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 run: echo "${{ secrets.MAC_PROVISIONING_PROFILE }}" | base64 --decode > embedded.provisionprofile working-directory: ./apps/desktop @@ -212,6 +218,12 @@ jobs: npm ci --ignore-scripts --prefer-offline --no-audit 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 run: npx nx run release --project @notesnook/desktop working-directory: ./apps/desktop @@ -272,6 +284,12 @@ jobs: npm ci --ignore-scripts --prefer-offline --no-audit 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 run: npx nx run release --project @notesnook/desktop diff --git a/.github/workflows/desktop.tests.yml b/.github/workflows/desktop.tests.yml index 61aed2e57..0611dd12b 100644 --- a/.github/workflows/desktop.tests.yml +++ b/.github/workflows/desktop.tests.yml @@ -64,6 +64,12 @@ jobs: npm run bootstrap -- --scope=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 run: | yarn electron-builder --mac --dir --arm64 --x64 @@ -111,6 +117,12 @@ jobs: npm run bootstrap -- --scope=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 run: | yarn electron-builder --linux --dir --arm64 --x64 @@ -145,6 +157,12 @@ jobs: npm run bootstrap -- --scope=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 run: | npx cross-env NOTESNOOK_STAGING=true yarn electron-builder --win --dir --arm64 --x64