Experiment with CI #58
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
# (c) Copyright 2021 Xilinx, Inc. All Rights reserved. | ||
# (c) Copyright 2022 - 2024 Advanced Micro Devices, Inc. All Rights reserved. | ||
name: Build x86 LLVM-Nightly Image | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
# Run every week (on Sunday). | ||
schedule: | ||
- cron: '0 0 * * SUN' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
permissions: | ||
contents: read | ||
jobs: | ||
buildandtest: | ||
runs-on: ubuntu-latest | ||
- uses: actions/checkout@v4 | ||
- name: Setup ccache | ||
uses: hendrikmuhs/ccache-action@v1 | ||
with: | ||
# A full build of llvm, clang, lld, and lldb takes about 250MB | ||
# of ccache space. There's not much reason to have more than this, | ||
# because we usually won't need to save cache entries from older | ||
# builds. Also, there is an overall 10GB cache limit, and each | ||
# run creates a new cache entry so we want to ensure that we have | ||
# enough cache space for all the tests to run at once and still | ||
# fit under the 10 GB limit. | ||
# Default to 2G to workaround: https://github.com/hendrikmuhs/ccache-action/issues/174 | ||
max-size: 2G | ||
key: ${{ matrix.os }} | ||
variant: sccache | ||
- name: Build and Test | ||
shell: bash | ||
id: build-llvm | ||
run: | | ||
cmake -G Ninja \ | ||
-Bbuild \ | ||
llvm-project/llvm \ | ||
-DCMAKE_BUILD_TYPE=Relase \ | ||
-DCMAKE_C_COMPILER=clang \ | ||
-DCMAKE_CXX_COMPILER=clang++ \ | ||
-DLLVM_USE_LINKER=lld \ | ||
-DLLVM_ENABLE_PROJECTS=mlir \ | ||
-DLLVM_TARGETS_TO_BUILD=host \ | ||
-DLLVM_BUILD_TOOLS=OFF \ | ||
-DLLVM_BUILD_UTILS=OFF \ | ||
-DLLVM_BUILD_RUNTIMES=OFF \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=sccache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \ | ||
-DLLVM_EXTERNAL_PROJECTS=mlir-xten \ | ||
-DMLIR_XTEN_ENABLE_TORCH=OFF \ | ||
-DLLVM_EXTERNAL_MLIR_XTEN_SOURCE_DIR=. | ||
ninja -C build check-xten-all |