diff --git a/.github/workflows/buildAndTestCMake.yml b/.github/workflows/buildAndTestCMake.yml index 956ef0b1486..3688cf90678 100644 --- a/.github/workflows/buildAndTestCMake.yml +++ b/.github/workflows/buildAndTestCMake.yml @@ -20,8 +20,8 @@ on: push: branches: [ main ] schedule: - # Run once a day - - cron: '0 12 * * *' + # Run once every 6hr building against llvm-project@HEAD + - cron: '0 */6 * * *' workflow_dispatch: # Ensure that only a single job or workflow using the same @@ -34,6 +34,7 @@ concurrency: jobs: cmake-build: + name: "cmake-build ${{ github.event_name == 'schedule' && '(llvm-project@HEAD)' || ''}}" env: LLVM_PROJECT_DIR: "llvm-project" LLVM_BUILD_DIR: "llvm-build" @@ -51,7 +52,12 @@ jobs: id: llvm-version shell: bash run: | - echo "version=$(cat ${{ github.workspace }}/build_tools/llvm_version.txt)" >> $GITHUB_OUTPUT + USE_LLVM_HEAD=${{ github.event_name == 'schedule' }} + if [[ $USE_LLVM_HEAD = true ]]; then + echo "version=main" >> $GITHUB_OUTPUT + else + echo "version=$(cat ${{ github.workspace }}/build_tools/llvm_version.txt)" >> $GITHUB_OUTPUT + fi; - name: Setup workspace uses: ./.github/actions/setup-build