updated project name and added actions.yaml
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Failing after 7s
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) Failing after 6s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Failing after 7s
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) Failing after 6s
This commit is contained in:
1 parent
7d04b0078f
commit
e2b06fbc5d
6 files changed
+59
-11
No files matched your search
@@ -0,0 +1,45 @@
|
||||
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)
|
||||
|
||||
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)
|
||||
|
||||
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 && \
|
||||
ninja -C build
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
.idea
|
||||
build
|
||||
builddir
|
||||
fmongoose
|
||||
auth_service
|
||||
users.db
|
||||
*.swp
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
project(fmongoose LANGUAGES C)
|
||||
project(auth_service LANGUAGES C)
|
||||
|
||||
set(CMAKE_C_STANDARD 23)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
@@ -11,8 +11,8 @@ FILE(GLOB_RECURSE SOURCES src/*.c)
|
||||
find_package(SQLite3 REQUIRED)
|
||||
|
||||
add_executable(
|
||||
fmongoose
|
||||
auth_service
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(fmongoose ssl crypto sqlite3 pthread)
|
||||
target_link_libraries(auth_service ssl crypto sqlite3 pthread)
|
||||
@@ -5,7 +5,7 @@ LIBS = -lpthread -lcrypto -lsqlite3
|
||||
INCLUDES = -I./src/lib -I./src
|
||||
SRCS = $(wildcard src/*.c src/lib/*.c)
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
TARGET = fmongoose
|
||||
TARGET = auth_service
|
||||
BUILD_DIR=./build
|
||||
CROSS_COMPILE =
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
project('fmongoose', 'c', default_options: ['c_std=gnu2x'])
|
||||
project('auth_service', 'c', default_options: ['c_std=gnu2x'])
|
||||
include_dirs = include_directories('src', 'src/lib')
|
||||
deps = [dependency('openssl'), dependency('sqlite3')]
|
||||
executable(
|
||||
'fmongoose',
|
||||
'auth_service',
|
||||
'src/main.c',
|
||||
'src/user.c',
|
||||
'src/add_user.c',
|
||||
|
||||
+7
-4
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>fmongoose</title>
|
||||
<title>auth_service</title>
|
||||
</head>
|
||||
<style>
|
||||
.login-form {
|
||||
@@ -15,12 +15,15 @@
|
||||
</style>
|
||||
<body>
|
||||
<h1>it's work</h1>
|
||||
<div class="login-form" style="display:flex;flex-direction:column;max-width:200px;">
|
||||
<div
|
||||
class="login-form"
|
||||
style="display: flex; flex-direction: column; max-width: 200px"
|
||||
>
|
||||
<h2>Login</h2>
|
||||
<label for="username_input">Username</label>
|
||||
<input type="text" id="username_input">
|
||||
<input type="text" id="username_input" />
|
||||
<label for="password_input">Password</label>
|
||||
<input type="password" id="password_input">
|
||||
<input type="password" id="password_input" />
|
||||
</div>
|
||||
<script>
|
||||
console.log("hello world");
|
||||
|
||||
Reference in new issue
Block a user