Merge pull request 'actions' (#2) from actions into main
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 9m50s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 3m46s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 4m30s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 9m50s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 3m46s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 4m30s
Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/auth_service/pulls/2
This commit was merged in pull request #2.
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
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 "83.172.39.220 gitea.home.com" >> /etc/hosts && \
|
||||
apk add openssl openssl-dev
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Building binary with make
|
||||
run: |
|
||||
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
||||
make -j$(nproc)
|
||||
- name: Testing to run binary builded with make
|
||||
run: ./bin/auth_service
|
||||
|
||||
Prepare-Build-Testing-With-CMake:
|
||||
runs-on: alpine-sdk
|
||||
steps:
|
||||
- name: prepare-container
|
||||
run: |
|
||||
echo "83.172.39.220 gitea.home.com" >> /etc/hosts && \
|
||||
apk add openssl openssl-dev cmake
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Building binary with CMake
|
||||
run: |
|
||||
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
||||
mkdir build && \
|
||||
cd build && \
|
||||
cmake .. && \
|
||||
make -j$(nproc)
|
||||
- name: Testing to run binary builded with CMake
|
||||
run: ./build/auth_service
|
||||
|
||||
Prepare-Build-Testing-With-Meson:
|
||||
runs-on: alpine-sdk
|
||||
steps:
|
||||
- name: prepare-container
|
||||
run: |
|
||||
echo "83.172.39.220 gitea.home.com" >> /etc/hosts && \
|
||||
apk add openssl openssl-dev meson ninja cmake
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Building binary with meson
|
||||
run: |
|
||||
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
||||
meson setup build && \
|
||||
ninja -C build
|
||||
- name: Testing to run binary builded with meson
|
||||
run: ./build/auth_service
|
||||
@@ -2,5 +2,9 @@
|
||||
|
||||
int main() {
|
||||
AuthService auth_service;
|
||||
#ifdef TEST
|
||||
return 0;
|
||||
#else
|
||||
return auth_service.serve("127.0.0.1", 43243);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user