From 7cec436317d689f5262a2054ff8611bda2dee464 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:56:06 +0800 Subject: [PATCH] feat add .gitea --- .gitea/workflows/linux-x64-gcc.yml | 46 ++++++++++++++++++++++++++++++ include/sled/byte_order.h | 2 +- include/sled/units/timestamp.h | 2 +- 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/linux-x64-gcc.yml diff --git a/.gitea/workflows/linux-x64-gcc.yml b/.gitea/workflows/linux-x64-gcc.yml new file mode 100644 index 0000000..9f9618f --- /dev/null +++ b/.gitea/workflows/linux-x64-gcc.yml @@ -0,0 +1,46 @@ +name: linux-x64-gcc +on: + push: + paths: + - ".gitea/workflows/linux-x64-gcc.yml" + - "3party/**" + - "benchmark/**" + - "include/**" + - "src/**" + - "tests/**" + - "CMakeLists.txt" + pull_request: + paths: + - ".gitea/workflows/linux-x64-gcc.yml" + - "3party/**" + - "benchmark/**" + - "include/**" + - "src/**" + - "tests/**" + - "CMakeLists.txt" + +concurrency: + group: linux-x64-gcc-${{ github.ref }} + cancel-in-progress: true + +jobs: + linux-gcc: + runs-on: ubuntu-20.04 + strategy: + matrix: + build_type: ["Debug", "Release"] + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: install-tools + run: | + sudo apt-get update -y + sudo apt-get install -y cmake make + - name: configure + run: | + mkdir build && cd build + cmake .. -DCMAKE_BUILD_TYPE=${{matrix.build_type}} + - name: build + run: | + cmake --build build -j `nproc` diff --git a/include/sled/byte_order.h b/include/sled/byte_order.h index 943db08..6251ff7 100644 --- a/include/sled/byte_order.h +++ b/include/sled/byte_order.h @@ -1,4 +1,4 @@ -#progam once +#pragma once #ifndef SLED_BYTE_ORDER_H #define SLED_BYTE_ORDER_H #include diff --git a/include/sled/units/timestamp.h b/include/sled/units/timestamp.h index 923da4a..e0911cb 100644 --- a/include/sled/units/timestamp.h +++ b/include/sled/units/timestamp.h @@ -4,7 +4,7 @@ * @license : MIT **/ -#progma once +#pragma once #ifndef SLED_UNITS_TIMESTAMP_H #define SLED_UNITS_TIMESTAMP_H #include "sled/units/time_delta.h"