Added --jobs to make command. #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install tools | |
run: | | |
sudo apt-get install autopoint automake pkg-config texinfo | |
- name: Bootstrap | |
run: | | |
./bootstrap | |
- name: Configure | |
run: | | |
./configure | |
- name: Compile | |
run: | | |
cores=$(lscpu | awk '/^CPU\(s\)/ { print $2 }') | |
make --jobs $(( cores * 2 )) | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: make | |
path: make |