Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 7s
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 11s
60 lines
2.2 KiB
YAML
60 lines
2.2 KiB
YAML
name: Prepare Build and Testing executable binary
|
|
run-name: ${{ gitea.actor }}
|
|
on: [push]
|
|
|
|
jobs:
|
|
Prepare-Build-Testing-With-Make:
|
|
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
|
|
- 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-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
|