Lines Matching +full:python3 +full:- +full:github
17 default: '["ubuntu-latest", "windows-2019", "macOS-13"]'
40 # Use windows-2019 due to:
41 # https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
42 # Use ubuntu-22.04 rather than ubuntu-latest to match the ubuntu
43 # version in the CI container. Without this, setup-python tries
47 default: '["ubuntu-22.04", "windows-2019", "macOS-13"]'
59 group: llvm-project-${{ github.workflow }}-${{ inputs.projects }}-${{ inputs.python_version }}${{ github.ref }}
60 cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
63 lit-tests:
65 runs-on: ${{ matrix.os }}
67 image: ${{(startsWith(matrix.os, 'ubuntu') && 'ghcr.io/llvm/ci-ubuntu-22.04:latest') || null}}
69 - /mnt/:/mnt/
71 fail-fast: false
75 - name: Setup Windows
77 uses: llvm/actions/setup-windows@main
80 # On Windows, starting with win19/20220814.1, cmake choose the 32-bit
81 # python3.10.6 libraries instead of the 64-bit libraries when building
82 # lldb. Using this setup-python action to make 3.10 the default
84 - name: Setup Python
85 uses: actions/setup-python@v5
87 python-version: ${{ inputs.python_version }}
88 - name: Install Ninja
90 uses: llvm/actions/install-ninja@main
92 # so this needs to either run before ccache-action or it has to use
94 - uses: actions/checkout@v4
96 fetch-depth: 250
97 - name: Setup ccache
98 uses: hendrikmuhs/ccache-action@v1
107 # Default to 2G to workaround: https://github.com/hendrikmuhs/ccache-action/issues/174
108 max-size: 2G
111 - name: Build and Test
113 # Workaround for https://github.com/actions/virtual-environments/issues/5900.
114 # This should be a no-op for non-mac OSes
117 id: build-llvm
121 sudo mkdir -p $builddir
123 extra_cmake_args="-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang"
129 # https://github.com/llvm/llvm-project/issues/81967
130 extra_cmake_args="-DLLVM_DISABLE_ASSEMBLY_FILES=ON"
132 echo "llvm-builddir=$builddir" >> "$GITHUB_OUTPUT"
133 cmake -G Ninja \
134 -B "$builddir" \
135 -S llvm \
136 -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" \
137 -DCMAKE_BUILD_TYPE=Release \
138 -DLLVM_ENABLE_ASSERTIONS=ON \
139 -DLLDB_INCLUDE_TESTS=OFF \
140 -DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl" \
141 -DCMAKE_C_COMPILER_LAUNCHER=sccache \
142 -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
145 ninja -C "$builddir" '${{ inputs.build_target }}'
147 - name: Build and Test libclc
150 LLVM_BUILDDIR: ${{ steps.build-llvm.outputs.llvm-builddir }}
154 ninja -C "$LLVM_BUILDDIR"