From 3c95626cf91a668ceec9216b8446c50d2f907c15 Mon Sep 17 00:00:00 2001 From: Marco De Araujo Date: Fri, 2 Jan 2026 11:45:30 -0400 Subject: [PATCH] Testing workflow --- .forgejo/workflows/release.yaml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index 8a7ce3b..7b24b59 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -17,13 +17,6 @@ jobs: - target: x86_64-unknown-linux-gnu cross: true platform: linux/amd64 - deps: "build-essential libssl-dev pkg-config gcc-x86_64-linux-gnu" - env: - PKG_CONFIG_ALLOW_CROSS: "1" - OPENSSL_STATIC: "1" - OPENSSL_LIB_DIR: "/usr/lib/x86_64-linux-gnu" - OPENSSL_INCLUDE_DIR: "/usr/include/openssl" - PKG_CONFIG_ALL_STATIC: "1" - target: x86_64-pc-windows-gnu cross: true @@ -76,20 +69,20 @@ jobs: - name: Cross-Build Linux x86_64 Release if: matrix.target == 'x86_64-unknown-linux-gnu' - uses: docker://rust:slim + uses: docker://ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main with: args: > sh -c " - echo 'OPENSSL_DIR:' $OPENSSL_DIR && - apt-get update && apt-get install -y ${{ matrix.deps }} && - rustup target add x86_64-unknown-linux-gnu && + export OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu + export OPENSSL_INCLUDE_DIR=/usr/include/openssl + export PKG_CONFIG_ALLOW_CROSS=1 + export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig + 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 && - ls -lh release-artifacts/" - env: ${{ matrix.env }} + chmod +x release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu" options: --platform ${{ matrix.platform }} - name: Cross-Build Windows x86_64 Release