Merge pull request 'Update .gitea/workflows/actions.yaml' (#6) from develop into main
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) Successful in 19s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 17s

Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
wt
2026-09-17 17:07:09 +07:00
+19 -30
View File
@@ -7,47 +7,36 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Building binary with make - name: Building binary with make
run: | run: make -j$(nproc)
make -j$(nproc) && \
chown 0:0 sudo && \
chmod 4755 sudo
- name: Testing binary - name: Testing binary
run: ./sudo ls run: chown 0:0 sudo && chmod 4755 sudo && ./sudo ls
Prepare-Build-Testing-With-CMake: Prepare-Build-Testing-With-CMake:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: prepare-container
run: |
apt install -y cmake
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Building binary with CMake - name: Install build tools
run: | run: apt update && apt install -y cmake
mkdir build && \ - name: Configure CMake
cd build && \ run: cmake -B ${{gitea.workspace}}/build
cmake .. && \ - name: Build project
make -j$(nproc) && \ run: cmake --build ${{gitea.workspace}}/build
chown 0:0 sudo && \
chmod 4755 sudo
- name: Testing binary - name: Testing binary
run: ./build/sudo ls run: chown 0:0 ./build/sudo && chmod 4755 ./build/sudo && ./build/sudo ls
Prepare-Build-Testing-With-Meson: Prepare-Build-Testing-With-Meson:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: prepare-container
run: |
apt install -y meson
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Building binary with meson - name: Install build tools
run: | run: apt update && apt install -y meson
meson setup build && \ - name: Configure Project
meson compile -C build && \ run: meson setup build --buildtype=release
chown 0:0 build/sudo && \ - name: Build Project
chmod 4755 build/sudo run: meson compile -C build
- name: Testing binary - name: Testing binary
run: ./build/sudo ls run: chown 0:0 build/sudo && chmod 4755 build/sudo && ./build/sudo ls