Update .gitea/workflows/actions.yaml #6
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user