From d80bc544dcfe09348f7bb24ca482eb83c8f1bfdd Mon Sep 17 00:00:00 2001 From: Marco De Araujo Date: Sun, 4 Jan 2026 11:35:44 -0400 Subject: [PATCH] Testing workflow --- .forgejo/workflows/release.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index dbd0374..16122a8 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -17,11 +17,14 @@ jobs: - target: x86_64-unknown-linux-gnu cross: true platform: linux/amd64 + deps: "gcc-x86-64-linux-gnu libc6-dev-amd64-cross" + env: + CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: x86_64-linux-gnu-gcc - target: x86_64-pc-windows-gnu cross: true platform: linux/amd64 - deps: "build-essential gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64" + deps: "gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 cmake nasm" env: CC_x86_64_pc_windows_gnu: x86_64-w64-mingw32-gcc CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: x86_64-w64-mingw32-gcc @@ -36,7 +39,7 @@ jobs: toolchain: stable - name: Add Rust target - if: matrix.target != 'native' && !matrix.container + if: matrix.target != 'native' run: rustup target add ${{ matrix.target }} - name: Cache Rust dependencies @@ -73,13 +76,15 @@ jobs: with: args: > sh -c " - apt-get update && apt-get install -y build-essential libssl-dev pkg-config gcc-x86-64-linux-gnu && - rustup target add x86_64-unknown-linux-gnu && + apt-get update && apt-get install -y build-essential ${{ matrix.deps }} pkg-config && + mkdir -p ~/.cargo && + echo '[target.x86_64-unknown-linux-gnu]\nlinker = \"x86_64-linux-gnu-gcc\"' > ~/.cargo/config.toml && cargo build --release --target x86_64-unknown-linux-gnu && mkdir -p release-artifacts && cp target/x86_64-unknown-linux-gnu/release/uptime-kuma-dashboard release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && strip release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && chmod +x release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu" + env: ${{ matrix.env }} options: --platform ${{ matrix.platform }} - name: Cross-Build Windows x86_64 Release @@ -89,7 +94,6 @@ jobs: args: > sh -c " apt-get update && apt-get install -y ${{ matrix.deps }} && - rustup target add x86_64-pc-windows-gnu && cargo build --release --target x86_64-pc-windows-gnu && mkdir -p release-artifacts && cp target/x86_64-pc-windows-gnu/release/uptime-kuma-dashboard.exe release-artifacts/uptime-kuma-dashboard-x86_64-pc-windows-gnu.exe && @@ -169,5 +173,5 @@ jobs: ``` ### 🏗️ Build Information - Runner Architecture: ${{ env.RUNNER_ARCH }} - - Rust Version: 1.84.0 + - Rust Version: 1.92.0 - Build Type: Release (optimized)