Develop #2
@@ -10,39 +10,27 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
- name: Building binary with make
|
||||
run: make -j$(nproc)
|
||||
# - name: Testing binary
|
||||
# run: make test
|
||||
|
||||
Prepare-Build-Testing-With-CMake:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: prepare-container
|
||||
run: |
|
||||
apt install -y 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 binary
|
||||
# run: |
|
||||
# cp -v build/auth_service . && ./tests.sh
|
||||
uses: actions/checkout@v4
|
||||
- name: Install build tools
|
||||
run: apt update && apt install -y cmake
|
||||
- name: Configure CMake
|
||||
run: cmake -B ${{gitea.workspace}}/build
|
||||
- name: Build project
|
||||
run: cmake --build ${{gitea.workspace}}/build
|
||||
|
||||
Prepare-Build-Testing-With-Meson:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: prepare-container
|
||||
run: |
|
||||
apt install -y meson
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Building binary with meson
|
||||
run: |
|
||||
meson setup build && \
|
||||
ninja -C build
|
||||
# - name: Testing binary
|
||||
# run: |
|
||||
# cp -v build/auth_service . && ./tests.sh
|
||||
uses: actions/checkout@v4
|
||||
- name: Install build tools
|
||||
run: apt update && apt install -y meson
|
||||
- name: Configure Project
|
||||
run: meson setup build --buildtype=release
|
||||
- name: Build Project
|
||||
run: meson compile -C build
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
set(CMAKE_C_COMPILER aarch64-buildroot-linux-uclibc-gcc)
|
||||
@@ -0,0 +1,11 @@
|
||||
[binaries]
|
||||
c = 'aarch64-buildroot-linux-uclibc-gcc'
|
||||
ar = 'aarch64-buildroot-linux-uclibc-ar'
|
||||
strip = 'aarch64-buildroot-linux-uclibc-strip'
|
||||
ld = 'aarch64-buildroot-linux-uclibc-ld'
|
||||
|
||||
[host_machine]
|
||||
system = 'linux'
|
||||
cpu_family = 'x86_64'
|
||||
cpu = 'x86_64'
|
||||
endian = 'little'
|
||||
@@ -0,0 +1 @@
|
||||
set(CMAKE_C_COMPILER arm-buildroot-linux-uclibcgnueabihf-gcc)
|
||||
@@ -0,0 +1,11 @@
|
||||
[binaries]
|
||||
c = 'arm-buildroot-linux-uclibcgnueabihf-gcc'
|
||||
ar = 'arm-buildroot-linux-uclibcgnueabihf-ar'
|
||||
strip = 'arm-buildroot-linux-uclibcgnueabihf-strip'
|
||||
ld = 'arm-buildroot-linux-uclibcgnueabihf-ld'
|
||||
|
||||
[host_machine]
|
||||
system = 'linux'
|
||||
cpu_family = 'x86_64'
|
||||
cpu = 'x86_64'
|
||||
endian = 'little'
|
||||
@@ -0,0 +1 @@
|
||||
set(CMAKE_C_COMPILER x86_64-buildroot-linux-uclibc-gcc)
|
||||
@@ -0,0 +1,11 @@
|
||||
[binaries]
|
||||
c = 'x86_64-buildroot-linux-uclibc-gcc'
|
||||
ar = 'x86_64-buildroot-linux-uclibc-ar'
|
||||
strip = 'x86_64-buildroot-linux-uclibc-strip'
|
||||
ld = 'x86_64-buildroot-linux-uclibc-ld'
|
||||
|
||||
[host_machine]
|
||||
system = 'linux'
|
||||
cpu_family = 'x86_64'
|
||||
cpu = 'x86_64'
|
||||
endian = 'little'
|
||||
Reference in New Issue
Block a user