Skip to content

chore: Create the output directory on the pipeline #4

chore: Create the output directory on the pipeline

chore: Create the output directory on the pipeline #4

Workflow file for this run

name: Build & Run Test - GNU
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
BUILD_TYPE: Release
C_COMPILER: gcc
CPP_COMPILER: g++
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create output directory
run: mkdir ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: >
cmake .. -G "Unix Makefiles"
-DCMAKE_CXX_COMPILER=$${{env.CPP_COMPILER}}
-DCMAKE_C_COMPILER=${{env.C_COMPILER}}
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: ${{github.workspace}}/build
run: make
- name: Test
working-directory: ${{github.workspace}}/build
run: ./main