-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1014 Bytes
/
build_test.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
name: llvm essential build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 2 * * *' # Runs at 2am everyday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout llvm-essential
uses: actions/checkout@v4
with:
path: llvm-essential
- name: Install llvm and clang
run: |
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
- name: Preparing test environment
run: |
sudo apt install python3-pip -y
pip3 install lit
- name: Get riscv-gnu-toolchain
run: |
cd ${{github.workspace}}/llvm-essential
bash install-riscv.sh
export PATH=$HOME/riscv/bin:$PATH
- name: Start building
run: |
cd ${{github.workspace}}/llvm-essential
cmake -B build -S . -DHOME=$HOME
cmake --build build
- name: Start test
run: |
cd ${{github.workspace}}/llvm-essential
lit test