Skip to content

[ci] Upgrade to actions v4 #39

[ci] Upgrade to actions v4

[ci] Upgrade to actions v4 #39

Workflow file for this run

name: Linux
on: [pull_request, push, workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
bt: [Debug, Release]
cxx: [g++, clang++]
env:
BUILD_TYPE: ${{ matrix.bt }}
CXX: ${{ matrix.cxx }}
steps:
- uses: actions/checkout@v4
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake -DTESTS=1 $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
run: ./mylang -rt