name: Prepare Build with CMake and Testing executable binary run-name: ${{ gitea.actor }} on: [push] jobs: Prepare-Build-Testing-With-CMake: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v4 - name: Install build tools run: apt update && apt install -y cmake - name: Configure CMake run: cmake -B ${{gitea.workspace}}/build -DUSE_SQLITE3=ON - name: Build project run: cmake --build ${{gitea.workspace}}/build - name: Testing binary run: cp -v build/auth_service . && ./tests.sh Prepare-Build-Testing-With-CMake-Without-sqlite3: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v4 - name: Install build tools run: apt update && apt install -y cmake - name: Configure CMake run: cmake -B ${{gitea.workspace}}/build -DUSE_SQLITE3=OFF - name: Build project run: cmake --build ${{gitea.workspace}}/build - name: Testing binary run: cp -v build/auth_service . && ./tests.sh