-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.5 KB
/
ubuntu-clang20.yaml
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
name: ubuntu-clang20
on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- name: Installation
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip gobjc wget sudo
sudo apt install lsb-release wget software-properties-common gnupg -y
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs) main"
sudo apt update
sudo apt list | grep clang
sudo apt install clang-20 -y
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt install -y gcc-13 g++-13
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.9.1
- name: checkout
uses: actions/checkout@v3
- name: build
run: |
export XMAKE_ROOT="y"
g++-13 -v
export CXX=clang++-20
export CC=clang-20
xmake build -y
xmake install -o .
- name: build test
run: |
rm -rf out
./bin/frpc -f ./config/config.yaml -t ./template/cpp -o ./out -w ./template/web --auto_sort=1 --debug=0
xmake build -y --file=./test_xmake.lua
xmake install -o . --file=./test_xmake.lua