Lines Matching +full:github +full:- +full:upload +full:- +full:release

1 # This file defines pre-commit CI for libc++, libc++abi, and libunwind (on Github).
4 # when a job fails early in the pipeline. This is why the jobs are marked as `continue-on-error: false`.
11 # Therefore, we "fail-fast" for any failures during stages 1 & 2, meaning any job failing cancels all other running jobs,
13 # However, stage 3 does not fail fast, as it's more likely that any one job failing is a flake or a configuration-specific
19 - 'libcxx/**'
20 - 'libcxxabi/**'
21 - 'libunwind/**'
22 - 'runtimes/**'
23 - 'cmake/**'
24 - '.github/workflows/libcxx-build-and-test.yaml'
27 - cron: '0 8 * * *'
30 contents: read # Default everything to read-only
33 group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
34 cancel-in-progress: true
38 if: github.repository_owner == 'llvm'
39 runs-on: libcxx-self-hosted-linux
40 container: ghcr.io/llvm/libcxx-linux-builder:d8a0709b1090350a7fe3604d8ab78c7d62f10698
41 continue-on-error: false
43 fail-fast: false
46 'frozen-cxx03-headers',
47 'generic-cxx03',
48 'generic-cxx26',
49 'generic-modules'
51 cc: [ 'clang-20' ]
52 cxx: [ 'clang++-20' ]
54 - config: 'generic-gcc'
55 cc: 'gcc-14'
56 cxx: 'g++-14'
58 - uses: actions/checkout@v4
59 - name: ${{ matrix.config }}.${{ matrix.cxx }}
60 run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
64 - uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
67 name: ${{ matrix.config }}-${{ matrix.cxx }}-results
69 **/test-results.xml
76 if: github.repository_owner == 'llvm'
77 runs-on: libcxx-self-hosted-linux
78 container: ghcr.io/llvm/libcxx-linux-builder:d8a0709b1090350a7fe3604d8ab78c7d62f10698
80 continue-on-error: false
82 fail-fast: false
85 'generic-cxx11',
86 'generic-cxx14',
87 'generic-cxx17',
88 'generic-cxx20',
89 'generic-cxx23'
91 cc: [ 'clang-20' ]
92 cxx: [ 'clang++-20' ]
94 - config: 'generic-gcc-cxx11'
95 cc: 'gcc-14'
96 cxx: 'g++-14'
97 - config: 'generic-cxx23'
98 cc: 'clang-18'
99 cxx: 'clang++-18'
100 - config: 'generic-cxx26'
101 cc: 'clang-19'
102 cxx: 'clang++-19'
104 - uses: actions/checkout@v4
105 - name: ${{ matrix.config }}
106 run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
110 - uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
111 if: always() # Upload artifacts even if the build or test suite fails
113 name: ${{ matrix.config }}-${{ matrix.cxx }}-results
115 **/test-results.xml
122 if: github.repository_owner == 'llvm'
124 continue-on-error: false
126 fail-fast: false
127 max-parallel: 8
130 'generic-abi-unstable',
131 'generic-hardening-mode-debug',
132 'generic-hardening-mode-extensive',
133 'generic-hardening-mode-fast',
134 'generic-hardening-mode-fast-with-abi-breaks',
135 'generic-merged',
136 'generic-modules-lsv',
137 'generic-no-exceptions',
138 'generic-no-experimental',
139 'generic-no-filesystem',
140 'generic-no-localization',
141 'generic-no-terminal',
142 'generic-no-random_device',
143 'generic-no-threads',
144 'generic-no-tzdb',
145 'generic-no-unicode',
146 'generic-no-wide-characters',
147 'generic-no-rtti',
148 'generic-optimized-speed',
149 'generic-static',
150 'bootstrapping-build'
152 machine: [ 'libcxx-self-hosted-linux' ]
154 - config: 'generic-cxx26'
155 machine: libcxx-self-hosted-linux
156 - config: 'generic-asan'
157 machine: libcxx-self-hosted-linux
158 - config: 'generic-tsan'
159 machine: libcxx-self-hosted-linux
160 - config: 'generic-ubsan'
161 machine: libcxx-self-hosted-linux
163 - config: 'generic-msan'
164 machine: libcxx-self-hosted-linux
165 runs-on: ${{ matrix.machine }}
166 container: ghcr.io/llvm/libcxx-linux-builder:d8a0709b1090350a7fe3604d8ab78c7d62f10698
168 - uses: actions/checkout@v4
169 - name: ${{ matrix.config }}
170 run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
172 CC: clang-20
173 CXX: clang++-20
174 - uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
177 name: ${{ matrix.config }}-results
179 **/test-results.xml
189 fail-fast: false
192 - config: generic-cxx03
193 os: macos-15
194 - config: generic-cxx23
195 os: macos-15
196 - config: generic-modules
197 os: macos-15
198 - config: apple-configuration
199 os: macos-15
200 - config: apple-system
201 os: macos-13
202 - config: apple-system-hardened
203 os: macos-13
204 runs-on: ${{ matrix.os }}
206 - uses: actions/checkout@v4
207 - uses: maxim-lobanov/setup-xcode@v1
209 xcode-version: 'latest'
210 - uses: seanmiddleditch/gha-setup-ninja@master
211 - name: Build and test
213 python3 -m venv .venv
215 python -m pip install psutil
216 bash libcxx/utils/ci/run-buildbot ${{ matrix.config }}
217 - uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
218 if: always() # Upload artifacts even if the build or test suite fails
220 name: macos-${{ matrix.config }}-results
222 **/test-results.xml
230 runs-on: windows-2022
233 fail-fast: false
236 - { config: clang-cl-dll, mingw: false }
237 - { config: clang-cl-static, mingw: false }
238 - { config: clang-cl-no-vcruntime, mingw: false }
239 - { config: clang-cl-debug, mingw: false }
240 - { config: clang-cl-static-crt, mingw: false }
241 - { config: mingw-dll, mingw: true }
242 - { config: mingw-static, mingw: true }
243 - { config: mingw-dll-i686, mingw: true }
244 - { config: mingw-incomplete-sysroot, mingw: true }
246 - uses: actions/checkout@v4
247 - name: Install dependencies
249 choco install -y ninja
251 - name: Install a current LLVM
254 choco install -y llvm --version=18.1.6 --allow-downgrade
255 - name: Install llvm-mingw
258 curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20240606/llvm-mingw-20240606-ucrt-x86_64.zip
259 powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
260 del llvm-mingw*.zip
261 mv llvm-mingw* c:\llvm-mingw
262 echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
263 - name: Simulate a from-scratch build of llvm-mingw
264 if: ${{ matrix.config == 'mingw-incomplete-sysroot' }}
266 rm -r c:\llvm-mingw\include\c++
267 rm -r c:\llvm-mingw\*-w64-mingw32\lib\libc++*
268 rm -r c:\llvm-mingw\*-w64-mingw32\lib\libunwind*
269 - name: Add Git Bash to the path
271 echo "c:\Program Files\Git\usr\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
272 - name: Set up the MSVC dev environment
274 uses: ilammy/msvc-dev-cmd@v1
275 - name: Build and test
277 bash libcxx/utils/ci/run-buildbot ${{ matrix.config }}