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 - uses: actions/checkout@v1
- name: make test - name: make test
run: | run: |
make -j2 config=sanitize werror=1 test make -j3 config=sanitize werror=1 test
- name: make test w/flags - name: make test w/flags
run: | run: |
make -j2 config=sanitize werror=1 flags=true test make -j3 config=sanitize werror=1 flags=true test
- name: make cli - name: make cli
run: | 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 tests/conformance/assert.lua
./luau-analyze tests/conformance/assert.lua ./luau-analyze tests/conformance/assert.lua

View file

@ -9,6 +9,7 @@ on:
- 'papers/**' - 'papers/**'
- 'rfcs/**' - 'rfcs/**'
- '*.md' - '*.md'
pull_request:
jobs: jobs:
build: build:
@ -22,7 +23,7 @@ jobs:
- name: configure - name: configure
run: cmake . -DCMAKE_BUILD_TYPE=Release run: cmake . -DCMAKE_BUILD_TYPE=Release
- name: build - 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 - uses: actions/upload-artifact@v2
if: matrix.os != 'windows' if: matrix.os != 'windows'
with: with: