Skip to content

Commit

Permalink
Add clang to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasy-peak committed Aug 11, 2023
1 parent 454c4ef commit a11e011
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ubuntu-clang16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Linux-clang

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 clang-14 wget
clang-14 -v
export CXX=clang-14
export CC=clang-14
wget https://github.com/xmake-io/xmake/releases/download/v2.8.1/xmake-v2.8.1.xz.run
chmod 777 xmake-v2.8.1.xz.run > a.txt
./xmake-v2.8.1.xz.run
export XMAKE_ROOT="y"
source ~/.xmake/profile
xmake --version
- name: checkout
uses: actions/checkout@v3
- name: build
run: |
export XMAKE_ROOT="y"
source ~/.xmake/profile
clang-14 -v
export CXX=clang-14
export CC=clang-14
xmake build -y
xmake install -o .
ldd ./bin/cpp-freegpt-webui
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux
name: Linux-gcc13

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ add_requires("boost", {configs = {iostreams = true}})

set_languages("c++23")
set_policy("check.auto_ignore_flags", false)
add_cxflags("-O2 -Wall -Wextra -pedantic-errors -Wno-missing-field-initializers -Wno-ignored-qualifiers")
add_cxflags("-O2 -Wall -pedantic-errors -Wno-missing-field-initializers -Wno-ignored-qualifiers")
add_includedirs("include")

target("cpp-freegpt-webui")
Expand Down

0 comments on commit a11e011

Please sign in to comment.