Skip to content

[ci] Add workflow_dispatch in the "on" property #38

[ci] Add workflow_dispatch in the "on" property

[ci] Add workflow_dispatch in the "on" property #38

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@v2
- 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