From 4ab5667c94269e9934dc1ba0ea1156b6f5e84ea8 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 29 Sep 2022 15:58:40 -0700 Subject: [PATCH] Make release builds parallel and use j3 on macOS --- .github/workflows/build.yml | 22 +++++++++++++++++++--- .github/workflows/release.yml | 3 ++- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78c3a34d..89401037 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,13 +27,29 @@ jobs: - uses: actions/checkout@v1 - name: make test run: | - make -j2 config=sanitize werror=1 test + make -j3 config=sanitize werror=1 test - name: make test w/flags run: | - make -j2 config=sanitize werror=1 flags=true test + make -j3 config=sanitize werror=1 flags=true test - name: make cli run: | - make -j2 config=sanitize werror=1 luau luau-analyze # match config with tests to improve build time + make -j3 config=sanitize werror=1 luau luau-analyze # match config with tests to improve build time + ./luau tests/conformance/assert.lua + ./luau-analyze tests/conformance/assert.lua + + ubuntu-clang: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: make test + run: | + CXX=clang++ make -j3 config=sanitize werror=1 test + - name: make test w/flags + run: | + CXX=clang++ make -j3 config=sanitize werror=1 flags=true test + - name: make cli + run: | + CXX=clang++ make -j3 config=sanitize werror=1 luau luau-analyze # match config with tests to improve build time ./luau tests/conformance/assert.lua ./luau-analyze tests/conformance/assert.lua diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5cd952b..db9ce08b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ on: - 'papers/**' - 'rfcs/**' - '*.md' + pull_request: jobs: build: @@ -22,7 +23,7 @@ jobs: - name: configure run: cmake . -DCMAKE_BUILD_TYPE=Release - name: build - run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI --config Release + run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI --config Release -j 3 - uses: actions/upload-artifact@v2 if: matrix.os != 'windows' with: