-
Notifications
You must be signed in to change notification settings - Fork 393
48 lines (46 loc) · 1.46 KB
/
x86-ubuntu.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
name: x86-Ubuntu
on:
push:
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
compiler:
- { compiler: GNU, CC: gcc, CXX: g++ }
- { compiler: LLVM, CC: clang, CXX: clang++ }
type: [Debug, Release]
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
sudo apt-get update
sudo apt-get install -y llvm-18 llvm-18-dev llvm-18-tools clang-18
sudo apt-get install python3-setuptools
sudo pip3 install lit
- name: Build HelloWorld
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
run: |
cd HelloWorld
mkdir build && cd build
cmake -DLT_LLVM_INSTALL_DIR="/usr/lib/llvm-18/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
make -j2
- name: Build llvm-tutor + run tests
run: |
cd $GITHUB_WORKSPACE
mkdir build && cd build
cmake -DLT_LLVM_INSTALL_DIR="/usr/lib/llvm-18/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
make -j2
lit -va test/