From 256de52198d0b5328cf0fc6bd1008aaae8590056 Mon Sep 17 00:00:00 2001 From: Dan Yeaw Date: Sun, 4 Dec 2022 20:50:14 -0500 Subject: [PATCH 1/2] Resolve out of memory errors by using 2 cores --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce3d3fdc0..2aaf77e36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,12 +111,14 @@ jobs: Move-Item "C:\Program Files\Git\bin" "C:\Program Files\Git\notbin" - name: Build GTK3 if: matrix.gtk-version == '3' - run: poetry run gvsbuild build gtk3 gtksourceview4 graphene glib-networking + run: > + poetry run gvsbuild build --ninja-opts -j2 gtk3 gtksourceview4 graphene + glib-networking - name: Build GTK4 if: matrix.gtk-version == '4' run: > - poetry run gvsbuild build --enable-gi cairo gtk4 libadwaita gtksourceview5 - gobject-introspection adwaita-icon-theme hicolor-icon-theme + poetry run gvsbuild build --ninja-opts -j2 --enable-gi cairo gtk4 libadwaita + gtksourceview5 gobject-introspection adwaita-icon-theme hicolor-icon-theme - name: Restore git binary run: | Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin" From b8e9bc93c3144e2ec8fcb5e1ad3feaa7310eef1c Mon Sep 17 00:00:00 2001 From: Dan Yeaw Date: Tue, 6 Dec 2022 18:48:51 -0500 Subject: [PATCH 2/2] Add comment to explain -j2 [skip ci] --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2aaf77e36..fb4d07f56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,7 +116,7 @@ jobs: glib-networking - name: Build GTK4 if: matrix.gtk-version == '4' - run: > + run: > # Use -j2 option to prevent out of memory errors with GitHub Action runners poetry run gvsbuild build --ninja-opts -j2 --enable-gi cairo gtk4 libadwaita gtksourceview5 gobject-introspection adwaita-icon-theme hicolor-icon-theme - name: Restore git binary