From 1f9cbddf37c16fd1d9b05cded6fde90065dcddb9 Mon Sep 17 00:00:00 2001 From: James Darpinian Date: Fri, 7 Jun 2024 08:28:11 -0700 Subject: [PATCH] Speed up GitHub Actions with -j --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e13814a..8166f163 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: sudo apt-get update sudo apt-get install libsdl2-dev - name: Compile - run: make release + run: make release -j$(nproc) env: ARCHIVE: 1 - uses: actions/upload-artifact@v4 @@ -27,7 +27,7 @@ jobs: - name: Compile run: | choco install zip - make release + make release -j $env:NUMBER_OF_PROCESSORS env: ARCHIVE: 1 - uses: actions/upload-artifact@v4 @@ -40,7 +40,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Compile - run: make release + run: make release -j$(sysctl -n hw.logicalcpu) env: ARCHIVE: 1 - uses: actions/upload-artifact@v4