Speed up GitHub Actions with -j

This commit is contained in:
James Darpinian 2024-06-07 08:28:11 -07:00 committed by Zack Middleton
parent f2169ed0b4
commit 1f9cbddf37

View file

@ -12,7 +12,7 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install libsdl2-dev sudo apt-get install libsdl2-dev
- name: Compile - name: Compile
run: make release run: make release -j$(nproc)
env: env:
ARCHIVE: 1 ARCHIVE: 1
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@ -27,7 +27,7 @@ jobs:
- name: Compile - name: Compile
run: | run: |
choco install zip choco install zip
make release make release -j $env:NUMBER_OF_PROCESSORS
env: env:
ARCHIVE: 1 ARCHIVE: 1
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@ -40,7 +40,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Compile - name: Compile
run: make release run: make release -j$(sysctl -n hw.logicalcpu)
env: env:
ARCHIVE: 1 ARCHIVE: 1
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4