apply abbriviations #78
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 Linux | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/build-linux.yml' | |
- 'src/**' | |
- 'include/**' | |
- 'example/**' | |
- 'CMakeLists.txt' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install CMake | |
run: sudo apt-get update && sudo apt-get install -y cmake | |
- name: Determine CPU Cores | |
id: cpu-info | |
run: echo "CPU_CORES=$(nproc)" >> $GITHUB_ENV | |
- name: Configure CMake | |
run: cmake -B build -DCMAKE_BUILD_TYPE=Release | |
- name: Build | |
run: cmake --build build --config Release -- -j${{ env.CPU_CORES }} | |
- name: Upload Build Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linux-x86_64 | |
path: | | |
lib/ | |
include/ |