-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 1.82 KB
/
test-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Tests-Ubuntu
on:
push:
branches:
- main
pull_request: {}
schedule:
- cron: '0 23 * * SUN-THU'
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Upgrade apt
run: |
sudo apt update && sudo apt upgrade
- name: Install llvm
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17 all
rm llvm.sh
- name: Install cmake
run: |
wget -O cmake_install.sh https://github.com/Kitware/CMake/releases/download/v3.28.0/cmake-3.28.0-linux-x86_64.sh
chmod +x cmake_install.sh
sudo ./cmake_install.sh --prefix=/usr/local --skip-license
rm cmake_install.sh
- name: Install ninja
run: |
wget https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip
yes | sudo unzip ninja-linux.zip -d /usr/local/bin
- name: Build Debug
run: |
cmake -B build_debug -S . -DARGO_TESTS_ENABLE=true -GNinja -DCMAKE_BUILD_TYPE=Debug
cmake --build build_debug
env:
CC: /usr/bin/clang-17
CXX: /usr/bin/clang++-17
LDFLAGS: -L/usr/lib/llvm-17/lib
CPPFLAGS: -stdlib=libc++
- name: Build Release
run: |
cmake -B build_release -S . -DARGO_TESTS_ENABLE=true -GNinja -DCMAKE_BUILD_TYPE=Release
cmake --build build_release
env:
CC: /usr/bin/clang-17
CXX: /usr/bin/clang++-17
LDFLAGS: -L/usr/lib/llvm-17/lib
CPPFLAGS: -stdlib=libc++
- name: Test Release
run: |
cmake --build build_release --target test
- name: Test Debug
run: |
cmake --build build_debug --target test