Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AMD] Add self-hosted runner. #62

Open
wants to merge 6 commits into
base: aie-public
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/amd-aie-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
projects: clang;lld
cache-key: amd-aie
extra_cmake_args: '-DLLVM_USE_LINKER=gold -C clang/cmake/caches/Peano-AIE.cmake'
os_list: '["ubuntu-latest"]'
os_list: '["amd8700g"]'
18 changes: 11 additions & 7 deletions .github/workflows/llvm-project-tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# Modifications (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates
name: LLVM Project Tests

permissions:
Expand All @@ -8,7 +14,7 @@ on:
inputs:
cache-key:
required: false
default: 'sccache'
default: 'ccache'
build_target:
required: false
projects:
Expand All @@ -27,7 +33,7 @@ on:
cache-key:
required: false
type: string
default: 'sccache'
default: 'ccache'

build_target:
required: false
Expand Down Expand Up @@ -109,7 +115,6 @@ jobs:
# fit under the 10 GB limit.
max-size: 1.5G
key: ${{ inputs.cache-key }}-${{ matrix.os }}
variant: sccache
- name: Build and Test
env:
# Workaround for https://github.com/actions/virtual-environments/issues/5900.
Expand All @@ -119,8 +124,7 @@ jobs:
id: build-llvm
run: |
if [ "${{ runner.os }}" == "Linux" ]; then
builddir="/mnt/build/"
mkdir -p $builddir
builddir="$(pwd)"/build
extra_cmake_args="-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang"
else
builddir="$(pwd)"/build
Expand All @@ -138,8 +142,8 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DLLDB_INCLUDE_TESTS=OFF \
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
$extra_cmake_args \
${{ inputs.extra_cmake_args }}
ninja -C "$builddir" ${{ inputs.build_target }}
Expand Down
Loading