From 5cc13458520f74244a522be9a750a04a825df7e3 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 9 Jan 2026 16:42:51 +0100 Subject: [PATCH] add debain11 to cd update checkout actions to v5 in ci --- .github/workflows/cd.yml | 37 +++++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 12 ++++++------ 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0f1b3d1..1028565 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -49,6 +49,42 @@ jobs: path: | ${{github.workspace}}/${{ github.event.repository.name }}-${{ steps.tag.outputs.name }}-${{ runner.os }}-ubuntu24.04-x86_64.tar.gz + linux-debian12: + timeout-minutes: 10 + + runs-on: ubuntu-latest + container: debian:12 + + steps: + - name: Install Dependencies + run: apt update && apt -y install git build-essential pkg-config cmake ninja-build libsodium-dev libssl-dev + + - uses: actions/checkout@v5 + with: + submodules: recursive + fetch-depth: 0 + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_FLAGS=-gz -DCMAKE_CXX_FLAGS=-gz -DCMAKE_EXE_LINKER_FLAGS=-gz + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4 + + - name: Determine tag name + id: tag + shell: bash + run: . .github/workflows/tag_version.bash + + - name: Compress artifacts + shell: bash + run: | + tar -czvf ${{ github.event.repository.name }}-${{ steps.tag.outputs.name }}-${{ runner.os }}-debian12-x86_64.tar.gz -C ${{github.workspace}}/build/bin/ . + + - uses: actions/upload-artifact@v4 + with: + name: ${{ github.event.repository.name }}-${{ steps.tag.outputs.name }}-${{ runner.os }}-debian12-x86_64 + path: | + ${{github.workspace}}/${{ github.event.repository.name }}-${{ steps.tag.outputs.name }}-${{ runner.os }}-debian12-x86_64.tar.gz windows: timeout-minutes: 15 @@ -124,6 +160,7 @@ jobs: needs: - linux-ubuntu + - linux-debian12 - windows permissions: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2fd820..475176d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: submodules: recursive @@ -42,7 +42,7 @@ jobs: - name: Install Dependencies run: apt update && apt -y install git build-essential pkg-config cmake ninja-build libsodium-dev libssl-dev - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: submodules: recursive @@ -72,11 +72,11 @@ jobs: # ndk_abi: x86_64 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: submodules: recursive - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: repository: 'Green-Sky/vcpkg_android_triplets' path: 'vcpkg_android_triplets' @@ -135,7 +135,7 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: submodules: recursive @@ -157,7 +157,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: submodules: recursive