Skip to content

Merge pull request #19 from sillydan1/dev #94

Merge pull request #19 from sillydan1/dev

Merge pull request #19 from sillydan1/dev #94

Workflow file for this run

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