Make release builds parallel and use j3 on macOS

This commit is contained in:
Arseny Kapoulkine 2022-09-29 15:58:40 -07:00
parent 937ef2efd4
commit 4ab5667c94
2 changed files with 21 additions and 4 deletions

View file

@ -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

View file

@ -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: