All checks were successful
Build / build (push) Successful in 58s
Update build workflow to use Clang as the default compiler for building the project
41 lines
820 B
YAML
41 lines
820 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential cmake libabsl-dev clang
|
|
|
|
- name: Create build directory
|
|
run: mkdir build
|
|
|
|
- name: Configure the project
|
|
run: |
|
|
cd build
|
|
CC=clang CXX=clang++ cmake ..
|
|
|
|
- name: Build the project
|
|
run: |
|
|
cd build
|
|
make
|
|
|
|
- name: Upload Binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: cpu-check-binary
|
|
path: build/cpu-check |