[cmake] fix llvm out-of-tree build for one-step build strategy #1039
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test build process | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Set up ninja | |
uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Prepare llvm build directory name | |
id: llvm-build-dir | |
run: | | |
echo "commit=$(git submodule status | awk '{print $1;}')" >> $GITHUB_OUTPUT | |
- name: Cache llvm build directory | |
uses: actions/cache@v3 | |
with: | |
path: llvm | |
key: build-${{ steps.llvm-build-dir.outputs.commit }} | |
- name: Test build | |
run: bash ./tests/Actions/TestBuild.sh llvm/build-${{ steps.llvm-build-dir.outputs.commit }} |