Create actions.yaml
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 6s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 6s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 7s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 6s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 6s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 7s
This commit is contained in:
1 parent
d2032ea77d
commit
bd1c4626a1
1 file changed
+93
@@ -0,0 +1,93 @@
|
|||||||
|
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: prepare-container
|
||||||
|
run: |
|
||||||
|
echo "192.168.3.113 gitea.home.com" >> /etc/hosts
|
||||||
|
- 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: |
|
||||||
|
echo "192.168.3.113 gitea.home.com" >> /etc/hosts && \
|
||||||
|
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: |
|
||||||
|
./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: |
|
||||||
|
echo "192.168.3.113 gitea.home.com" >> /etc/hosts && \
|
||||||
|
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
|
||||||
Reference in new issue
Block a user