Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/deps/ports/broadcom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
tar -xaf dosfstools-4.2.tar.gz
cd dosfstools-4.2
./configure
make -j4
make -j$(nproc)
cd src
echo >> $GITHUB_PATH $(pwd)
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/mpy_cross/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:

- name: Build mpy-cross
if: inputs.download == 'false' || steps.download-mpy-cross.outcome == 'failure'
run: make -C mpy-cross -j4
run: make -C mpy-cross -j$(nproc)
shell: bash
env:
CP_VERSION: ${{ inputs.cp-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-board-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
BOARD: ${{ inputs.board }}
FLAGS: ${{ inputs.flags }}
DEBUG: ${{ inputs.debug && '1' || '0' }}
run: make -j4 $FLAGS BOARD="$BOARD" DEBUG=$DEBUG TRANSLATION="$TRANSLATION"
run: make -j$(nproc) $FLAGS BOARD="$BOARD" DEBUG=$DEBUG TRANSLATION="$TRANSLATION"
working-directory: ports/${{ steps.board-to-port.outputs.port }}
- name: Upload artifact
uses: actions/upload-artifact@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-mpy-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
sudo apt-get install -y mingw-w64

- name: Build mpy-cross.${{ matrix.mpy-cross }}
run: make -C mpy-cross -j4 -f Makefile.${{ matrix.mpy-cross }}
run: make -C mpy-cross -j$(nproc) -f Makefile.${{ matrix.mpy-cross }}

- name: Set output
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
python3 --version
msgfmt --version
- name: Build mpy-cross (arm64)
run: make -C mpy-cross -j4 -f Makefile.m1 V=2
run: make -C mpy-cross -j$(sysctl -n hw.ncpu) -f Makefile.m1 V=2
- uses: actions/upload-artifact@v7
with:
name: mpy-cross-macos-arm64
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
sudo apt-get install -y latexmk librsvg2-bin texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
pip install -r requirements-doc.txt
- name: Build and Validate Stubs
run: make check-stubs -j4
run: make check-stubs -j$(nproc)
- uses: actions/upload-artifact@v7
with:
name: stubs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
with:
cp-version: ${{ inputs.cp-version }}
- name: Build unix port
run: make -C ports/unix VARIANT=coverage -j4
run: make -C ports/unix VARIANT=coverage -j$(nproc)
- name: Run tests
run: ./run-tests.py -j4 ${{ env[format('TEST_{0}', matrix.test)] }}
run: ./run-tests.py -j$(nproc) ${{ env[format('TEST_{0}', matrix.test)] }}
working-directory: tests
- name: Print failure info
run: ./run-tests.py -j4 --print-failures
run: ./run-tests.py -j$(nproc) --print-failures
if: failure()
working-directory: tests
- name: Build native modules
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-zephyr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
- name: Set up external
uses: ./.github/actions/deps/external
- name: Build native sim target
run: make -C ports/zephyr-cp -j2 BOARD=native_native_sim
run: make -C ports/zephyr-cp -j$(nproc) BOARD=native_native_sim
- name: Build bsim
run: make -j 2 everything
run: make -j $(nproc) everything
working-directory: ports/zephyr-cp/tools/bsim
- name: Build native_nrf5340bsim
run: make -C ports/zephyr-cp -j2 BOARD=native_nrf5340bsim
run: make -C ports/zephyr-cp -j$(nproc) BOARD=native_nrf5340bsim
- name: Build native_nrf54lm20bsim
run: make -C ports/zephyr-cp -j2 BOARD=native_nrf54lm20bsim
run: make -C ports/zephyr-cp -j$(nproc) BOARD=native_nrf54lm20bsim
- name: Run Zephyr tests
run: make -C ports/zephyr-cp test
Loading