Files
leetcode_cpp/.gitea/workflows/actions.yaml
T
wt e8174d2735
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 10s
Update .gitea/workflows/actions.yaml
2026-09-17 15:39:33 +07:00

89 lines
3.2 KiB
YAML

name: Prepare Build and Testing executable binary
run-name: ${{ gitea.actor }}
on: [push]
jobs:
Prepare-Build-Testing-With-Make:
runs-on: alpine-sdk
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Building binary with make
run: make -j$(nproc)
- name: Testing to run binary builded with make
run: |
./canCompleteCircuit/canCompleteCircuit \
&& ./candy/candy \
&& ./canJump/canJump \
&& ./hindex/hindex \
&& ./jump/jump \
&& ./majorityelement/majorityelement \
&& ./maxprofit/maxprofit \
&& ./maxprofit2/maxprofit2 \
&& ./productExceptSelf/productExceptSelf \
&& ./randomizedset/randomizedset \
&& ./rmdupfromsortedarray/rmdupfromsortedarray \
&& ./rmdupfromsortedarray2/rmdupfromsortedarray2 \
&& ./rotate/rotate \
&& ./twopointers/twopointers
Prepare-Build-Testing-With-CMake:
runs-on: alpine-sdk
steps:
- name: prepare-container
run: |
apk add cmake
- name: Check out repository code
uses: actions/checkout@v3
- name: Building binary with CMake
run: |
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc)
- name: Testing to run binary builded with CMake
run: |
./build/canCompleteCircuit/canCompleteCircuit \
&& ./build/candy/candy \
&& ./build/canJump/canJump \
&& ./build/hindex/hindex \
&& ./build/jump/jump \
&& ./build/majorityelement/majorityelement \
&& ./build/maxprofit/maxprofit \
&& ./build/maxprofit2/maxprofit2 \
&& ./build/productExceptSelf/productExceptSelf \
&& ./build/randomizedset/randomizedset \
&& ./build/rmdupfromsortedarray/rmdupfromsortedarray \
&& ./build/rmdupfromsortedarray2/rmdupfromsortedarray2 \
&& ./build/rotate/rotate \
&& ./build/twopointers/twopointers
Prepare-Build-Testing-With-Meson:
runs-on: alpine-sdk
steps:
- name: prepare-container
run: |
apk add meson ninja cmake
- name: Check out repository code
uses: actions/checkout@v3
- name: Building binary with meson
run: |
meson setup build && \
meson compile -C build
- name: Testing to run binary builded with meson
run: |
./build/canCompleteCircuit/canCompleteCircuit \
&& ./build/candy/candy \
&& ./build/canJump/canJump \
&& ./build/hindex/hindex \
&& ./build/jump/jump \
&& ./build/majorityelement/majorityelement \
&& ./build/maxprofit/maxprofit \
&& ./build/maxprofit2/maxprofit2 \
&& ./build/productExceptSelf/productExceptSelf \
&& ./build/randomizedset/randomizedset \
&& ./build/rmdupfromsortedarray/rmdupfromsortedarray \
&& ./build/rmdupfromsortedarray2/rmdupfromsortedarray2 \
&& ./build/rotate/rotate \
&& ./build/twopointers/twopointers