From 91365ee1bd05c988babe81c816931011d74d3f3b Mon Sep 17 00:00:00 2001 From: Philipp Honysz Date: Wed, 2 Apr 2025 05:20:18 -0600 Subject: [PATCH 1/6] win ci: add workflow to build aie components --- .github/workflows/amd-aie-tests.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/amd-aie-tests.yml b/.github/workflows/amd-aie-tests.yml index d84551feb89f..9fb2a473602b 100644 --- a/.github/workflows/amd-aie-tests.yml +++ b/.github/workflows/amd-aie-tests.yml @@ -31,3 +31,13 @@ jobs: cache-key: amd-aie extra_cmake_args: '-DLLVM_USE_LINKER=gold -C clang/cmake/caches/Peano-AIE.cmake' os_list: '["ubuntu-22.04"]' + build_win: + if: github.repository_owner == 'Xilinx' + name: Build AIE + uses: ./.github/workflows/llvm-project-tests.yml + with: + build_target: check-llvm-aie check-clang-aie check-lld-aie + projects: clang;lld + cache-key: amd-aie + extra_cmake_args: '-DLLVM_USE_LINKER=gold -C clang/cmake/caches/Peano-AIE.cmake' + os_list: '["windows-2019"]' From 8c93489dbdf818c01cf32b4ec54cb541631f4db6 Mon Sep 17 00:00:00 2001 From: Philipp Honysz Date: Wed, 2 Apr 2025 07:12:53 -0600 Subject: [PATCH 2/6] move `build only` job for win into separate workflow --- .github/workflows/amd-aie-build.yml | 33 +++++++++++++++++++++++++++++ .github/workflows/amd-aie-tests.yml | 10 --------- 2 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/amd-aie-build.yml diff --git a/.github/workflows/amd-aie-build.yml b/.github/workflows/amd-aie-build.yml new file mode 100644 index 000000000000..393b6c0d3673 --- /dev/null +++ b/.github/workflows/amd-aie-build.yml @@ -0,0 +1,33 @@ +name: AIEngine LLVM Tests + +permissions: + contents: read + +on: + workflow_dispatch: + push: + branches: + - 'aie-public' + pull_request: + branches: + - 'aie-public' + +concurrency: + # A PR number if a pull request and otherwise the commit hash. This cancels + # queued and in-progress runs for the same PR (presubmit) or commit + # (postsubmit). + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + +jobs: + build: + if: github.repository_owner == 'Xilinx' + name: Build AIE + uses: ./.github/workflows/llvm-project-tests.yml + with: + build_target: default + projects: clang;lld + cache-key: amd-aie + extra_cmake_args: '-DLLVM_USE_LINKER=gold -C clang/cmake/caches/Peano-AIE.cmake' + os_list: '["windows-2019"]' diff --git a/.github/workflows/amd-aie-tests.yml b/.github/workflows/amd-aie-tests.yml index 9fb2a473602b..d84551feb89f 100644 --- a/.github/workflows/amd-aie-tests.yml +++ b/.github/workflows/amd-aie-tests.yml @@ -31,13 +31,3 @@ jobs: cache-key: amd-aie extra_cmake_args: '-DLLVM_USE_LINKER=gold -C clang/cmake/caches/Peano-AIE.cmake' os_list: '["ubuntu-22.04"]' - build_win: - if: github.repository_owner == 'Xilinx' - name: Build AIE - uses: ./.github/workflows/llvm-project-tests.yml - with: - build_target: check-llvm-aie check-clang-aie check-lld-aie - projects: clang;lld - cache-key: amd-aie - extra_cmake_args: '-DLLVM_USE_LINKER=gold -C clang/cmake/caches/Peano-AIE.cmake' - os_list: '["windows-2019"]' From d35a64a2c48e024b80f08e06ec834ec78345e506 Mon Sep 17 00:00:00 2001 From: Philipp Honysz Date: Wed, 2 Apr 2025 07:13:42 -0600 Subject: [PATCH 3/6] update workflow name --- .github/workflows/amd-aie-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amd-aie-build.yml b/.github/workflows/amd-aie-build.yml index 393b6c0d3673..9c83f3359112 100644 --- a/.github/workflows/amd-aie-build.yml +++ b/.github/workflows/amd-aie-build.yml @@ -1,4 +1,4 @@ -name: AIEngine LLVM Tests +name: AIEngine LLVM Build permissions: contents: read From 23429cd58bc09c3ba0d2c0e4c840256b8995d65e Mon Sep 17 00:00:00 2001 From: Philipp Honysz Date: Wed, 2 Apr 2025 07:18:08 -0600 Subject: [PATCH 4/6] leave build target empty to indicate default build --- .github/workflows/amd-aie-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amd-aie-build.yml b/.github/workflows/amd-aie-build.yml index 9c83f3359112..a21e4728d3ea 100644 --- a/.github/workflows/amd-aie-build.yml +++ b/.github/workflows/amd-aie-build.yml @@ -26,7 +26,7 @@ jobs: name: Build AIE uses: ./.github/workflows/llvm-project-tests.yml with: - build_target: default + build_target: "" # empty to indicate default target build projects: clang;lld cache-key: amd-aie extra_cmake_args: '-DLLVM_USE_LINKER=gold -C clang/cmake/caches/Peano-AIE.cmake' From 9e0ce6bed9845dcec16d2bb5e52c3515fa43d749 Mon Sep 17 00:00:00 2001 From: Philipp Honysz Date: Wed, 2 Apr 2025 14:17:53 -0600 Subject: [PATCH 5/6] dont link with `gold` on windows --- .github/workflows/amd-aie-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amd-aie-build.yml b/.github/workflows/amd-aie-build.yml index a21e4728d3ea..20cb01ae9b5e 100644 --- a/.github/workflows/amd-aie-build.yml +++ b/.github/workflows/amd-aie-build.yml @@ -29,5 +29,5 @@ jobs: build_target: "" # empty to indicate default target build projects: clang;lld cache-key: amd-aie - extra_cmake_args: '-DLLVM_USE_LINKER=gold -C clang/cmake/caches/Peano-AIE.cmake' + extra_cmake_args: '-C clang/cmake/caches/Peano-AIE.cmake' os_list: '["windows-2019"]' From 1922254c9984c277616561240754b12caa6acb8f Mon Sep 17 00:00:00 2001 From: Philipp Honysz Date: Tue, 8 Apr 2025 13:22:10 -0600 Subject: [PATCH 6/6] rename wf to indicate win exclusivity --- .github/workflows/{amd-aie-build.yml => amd-aie-build-win.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{amd-aie-build.yml => amd-aie-build-win.yml} (96%) diff --git a/.github/workflows/amd-aie-build.yml b/.github/workflows/amd-aie-build-win.yml similarity index 96% rename from .github/workflows/amd-aie-build.yml rename to .github/workflows/amd-aie-build-win.yml index 20cb01ae9b5e..ee820a61ca28 100644 --- a/.github/workflows/amd-aie-build.yml +++ b/.github/workflows/amd-aie-build-win.yml @@ -1,4 +1,4 @@ -name: AIEngine LLVM Build +name: AIEngine LLVM Build - Windows permissions: contents: read