Files
leetcode_cpp/.gitea/workflows/cmake.yaml
T
wt 8bd7af3ede
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 42s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 16s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 10s
Update cmake.yaml
2026-09-17 15:50:32 +07:00

33 lines
1.5 KiB
YAML

name: Prepare Build 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