Files
leetcode_cpp/.gitea/workflows/cmake.yaml
T
wt 83963b37dd
Prepare Build with CMake and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 34s
Prepare Build with Make and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 15s
Prepare Build with Meson and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Failing after 52s
added meson.yaml
2026-09-17 15:55:33 +07:00

33 lines
1.5 KiB
YAML

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: sudo apt-get update && sudo apt-get install -y build-essential cmake
- name: Configure CMake
run: cmake -B ${{gitea.workspace}}/build
- name: Build project
run: cmake --build ${{gitea.workspace}}/build
- name: Testing to run binary builded with CMake
run: |
${{gitea.workspace}}/build/canCompleteCircuit/canCompleteCircuit \
&& ${{gitea.workspace}}/build/candy/candy \
&& ${{gitea.workspace}}/build/canJump/canJump \
&& ${{gitea.workspace}}/build/hindex/hindex \
&& ${{gitea.workspace}}/build/jump/jump \
&& ${{gitea.workspace}}/build/majorityelement/majorityelement \
&& ${{gitea.workspace}}/build/maxprofit/maxprofit \
&& ${{gitea.workspace}}/build/maxprofit2/maxprofit2 \
&& ${{gitea.workspace}}/build/productExceptSelf/productExceptSelf \
&& ${{gitea.workspace}}/build/randomizedset/randomizedset \
&& ${{gitea.workspace}}/build/rmdupfromsortedarray/rmdupfromsortedarray \
&& ${{gitea.workspace}}/build/rmdupfromsortedarray2/rmdupfromsortedarray2 \
&& ${{gitea.workspace}}/build/rotate/rotate \
&& ${{gitea.workspace}}/build/twopointers/twopointers