diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000000..4d17444ee83e2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + types: + +jobs: + build: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Change to source directory + run: cd llvm-project + - name: Create build directory + run: mkdir build + - name: Change to build directory + run: cd build + - name: Configure llvm + run: cmake -G Ninja ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON + - name: Build and test llvm + run: ninja check-all + +