Skip to content

Commit

Permalink
Set up GitHub Actions to build MLIR
Browse files Browse the repository at this point in the history
Signed-off-by: Bili Dong <qobilidop@gmail.com>
  • Loading branch information
qobilidop committed Oct 6, 2024
1 parent 8d4026c commit d06acab
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-and-test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Cancel any preceding run on the pull request.
concurrency:
group: p4mlir-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
runs-on: ubuntu-20.04
env:
IMAGE_TYPE: test
steps:

- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive

- name: Enable ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}

- name: Install requirements
run: |
sudo build_tools/ubuntu_install_mlir_requirements.sh
- name: Build MLIR
run: |
sudo build_tools/build_mlir.sh

0 comments on commit d06acab

Please sign in to comment.