From d40fd56262c11f5adaed15a64ffd489f8ab7d03a Mon Sep 17 00:00:00 2001 From: Pascal Garber Date: Thu, 4 Apr 2024 17:21:15 +0200 Subject: [PATCH] CI: Build packages without run yarn install --- .github/workflows/ci.yml | 5 +++-- package.json | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a120d7cb0..c128b28b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,8 @@ jobs: run: sudo apt-get --yes install gjs libappindicator3-dev libgda-5.0-dev libgirepository1.0-dev libgtk-3-dev libgtk-4-dev libgtksourceview-3.0-dev libnotify-dev libsoup2.4-dev libsoup-3.0-dev libwebkit2gtk-4.0-dev libadwaita-1-dev gnome-shell-common libmutter-10-dev libgcr-3-dev libgnome-desktop-3-dev build-essential gobject-introspection libgirepository1.0-dev libcairo2-dev - run: yarn install - run: yarn run build - - run: yarn run build:types:packages + - run: yarn run build:types:packages:no-install - name: Show diff run: git diff --submodule | cat - - run: NODE_OPTIONS=--max_old_space_size=9216 yarn run validate:types:packages + - run: yarn install + - run: NODE_OPTIONS=--max_old_space_size=9216 yarn run validate:types:packages \ No newline at end of file diff --git a/package.json b/package.json index a4aef7554..c421101a9 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,10 @@ "build:examples": "yarn workspaces foreach -v --all --include '@ts-for-gir-example/*' --parallel run build", "build:all": "yarn build && yarn build:examples", "start:cli-examples": "yarn workspace @ts-for-gir-example/glib-2-spawn-command-example run start && yarn workspace @ts-for-gir-example/gio-2-cat-example run start", - "build:types:packages": "yarn ts-for-gir generate --configName='.ts-for-gir.packages-all.rc.js' && yarn install", - "build:types:packages:gtk4": "yarn ts-for-gir generate --configName='.ts-for-gir.packages-gtk4.rc.js' && yarn install", + "build:types:packages:no-install": "yarn ts-for-gir generate --configName='.ts-for-gir.packages-all.rc.js'", + "build:types:packages": "yarn build:types:packages:no-install && yarn install", + "build:types:packages:gtk4:no-install": "yarn ts-for-gir generate --configName='.ts-for-gir.packages-gtk4.rc.js'", + "build:types:packages:gtk4": "yarn build:types:packages:gtk4:no-install && yarn install", "build:types:local": "yarn ts-for-gir generate --configName='.ts-for-gir.all.rc.js'", "build:types:local:gtk4": "yarn ts-for-gir generate --configName='.ts-for-gir.gtk4.rc.js'", "build:types": "yarn build:types:local",