-
-
Notifications
You must be signed in to change notification settings - Fork 17
64 lines (53 loc) · 1.67 KB
/
CLANG-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
name: Build-and-Test-CLANG-Ubuntu
on:
workflow_dispatch:
push:
branches:
- main
- dev
jobs:
Build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
clang: [19]
build_type: [Debug, Release]
std: [20]
steps:
- uses: actions/checkout@v4
- name: Install the latest Clang compiler.
working-directory: Tests
run: |
sudo apt update && sudo apt upgrade
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 19
- name: Update Vcpkg and install other dependencies.
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nasm
/usr/local/share/vcpkg/vcpkg update
- name: Set TERM environment variable
run: echo "export TERM=xterm" >> $GITHUB_ENV
- name: Install the dependencies.
working-directory: ./
run: |
/usr/local/share/vcpkg/vcpkg install opus:x64-linux
/usr/local/share/vcpkg/vcpkg install libsodium:x64-linux
/usr/local/share/vcpkg/vcpkg install openssl:x64-linux
- name: Configure CMake
working-directory: ./
run: |
cmake -S . -B ./Build -DCMAKE_CXX_COMPILER=/usr/bin/clang++-19 -DDEV=true -DDISCORDCOREAPI_TEST=true -DVCPKG_ROOT_DIR="/usr/local/share/vcpkg/"
- name: Build the Test
working-directory: ./Build
run: |
cmake --build . --config=${{matrix.build_type}}
- name: Run the Test
working-directory: ./Build/Tests
run: |
sudo chmod u+x ./DiscordCoreAPITest
./DiscordCoreAPITest
continue-on-error: true