chore: update yalibs dependencies #103
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: CMake Pipeline | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
env: | |
BUILD_TYPE: Release | |
GIT_SUBMODULE_STRATEGY: recursive | |
jobs: | |
build-linux: | |
if: ${{ github.event.pull_request.draft == false }} | |
name: Build For Linux Systems | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Initialize Submodules | |
uses: snickerbockers/submodules-init@v4 | |
- name: Install dependencies | |
run: sudo apt-get install -y flex bison make flexc++ bisonc++ libbison-dev libfl-dev cmake | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
# Execute the build. You can specify a specific target with "--target <NAME>" | |
run: cmake --build . --config $BUILD_TYPE -j$(nproc) --target expr | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: library | |
path: ${{ github.workspace }}/build/libexpr.so |