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 1caa300
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
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

0 comments on commit 1caa300

Please sign in to comment.