Skip to content

[github] condition running validation #3

[github] condition running validation

[github] condition running validation #3

name: CMkae Auto-Release
on:
push:
branches: [ "version-core" ]
pull_request:
branches: [ "version-core" ]
jobs:
release:
name: Release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
c_compiler: [g++]
include:
- os: windows-latest
cpp_compiler: g++
- os: ubuntu-latest
cpp_compiler: g++
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Check if Git is installed
run: git --version
- name: Check if directory is a Git repository
run: git rev-parse --is-inside-work-tree
id: check_git_repo
continue-on-error: true
- name: Check Commit Message
id: check_commit_message
run: echo ::set-output name=message::$(git log --format=%B -n 1 ${{ github.sha }})
- name: Release Condition
if: "!startsWith(steps.check_commit_message.outputs.message, '[release]')"
id: release_condition
run: exit 0
- name: Configure CMake
if: steps.release_condition.outcome != 'sucess'
run: >
cmake -B ${{ github.workspace }}/cmake-build-debug
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DEKG_ENABLE_TEST=0
-DEKG_LINUX_NOT_FOUND_FREETYPE=1
-S ${{ github.workspace }}