Skip to content

[CI] Fix and switch to GitHub actions #5

[CI] Fix and switch to GitHub actions

[CI] Fix and switch to GitHub actions #5

Workflow file for this run

name: x86-Ubuntu
on:
push:
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler:
- { compiler: GNU, CC: gcc-10, CXX: g++-10 }
- { compiler: LLVM, CC: clang-10, CXX: clang++-10 }
type: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Clone GTest
run: git clone https://github.com/google/googletest.git
- name: Build and run
run: |
cd $GITHUB_WORKSPACE
mkdir build && cd build
cmake -DCT_Clang_INSTALL_DIR=/opt/homebrew/opt/llvm/ -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
cmake -DCMAKE_BUILD_TYPE=Release ../
make -j8
./cppTutorUT