forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 1.55 KB
/
ericwf-contracts-nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: EricWF Contracts Nightly Release flow
permissions:
contents: write
actions: read
on:
workflow_dispatch:
push:
branches:
- 'eric-contracts'
- "eric-test-contracts"
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
check_clang:
name: "Do it"
if: github.repository_owner == 'EricWF'
runs-on: aah
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: "Setup"
run: |
mkdir build
mkdir install
- name: "Configure"
run: >
cmake -B build -S ./llvm/
-G Ninja
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO
-DLLVM_ENABLE_PROJECTS="clang"
"-DLLVM_ENABLE_RUNTIMES=libcxx;libcxxabi;libunwind"
-DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_USE_LINKER=mold
-DCMAKE_INSTALL_PREFIX=./install
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
'-DLLVM_USE_SANITIZER=Address;Undefined'
- name: Build Clang & Libc++
run: |
cd build
ninja clang
ninja cxx
- name: Test Clang
run: |
cd build
ninja check-clang
- name: Check Libc++
run: |
cd build
ninja check-cxx
- name: Install
run: |
cd build
ninja install