Skip to content

Commit

Permalink
[CI/CD] added pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
isuckatcs committed Jun 28, 2024
1 parent 462667e commit 1da2714
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: How To Compile Your Language Pipeline

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
workflow_dispatch:

env:
BUILD_TYPE: Debug

jobs:
build:
name: Build

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

test:
name: Test

runs-on: ubuntu-latest

needs: build

steps:
- name: Test
working-directory: ${{github.workspace}}/build
run: |
pip install lit filecheck
cmake --build . -t test

0 comments on commit 1da2714

Please sign in to comment.