Testing workflow
Some checks failed
Multi-Platform Release Build / build (false, linux/arm64, native) (push) Successful in 10m13s
Multi-Platform Release Build / build (true, build-essential gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64, map[CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER:x86_64-w64-mingw32-gcc CC_x86_64_pc_windows_gnu:x86_64-w64-mingw32-gcc], linux/amd64, x86_64-pc-windows-gnu) (push) Failing after 3m58s
Multi-Platform Release Build / build (true, build-essential libssl-dev pkg-config, map[OPENSSL_DIR:/usr PKG_CONFIG_ALLOW_CROSS:1 PKG_CONFIG_PATH:/usr/lib/pkgconfig:/usr/share/pkgconfig], linux/amd64, x86_64-unknown-linux-gnu) (push) Failing after 9m48s
Multi-Platform Release Build / create-release (push) Has been skipped

This commit is contained in:
Marco De Araujo 2026-01-02 06:47:40 -04:00
parent ca1442851c
commit e5938b9014

View file

@ -17,10 +17,19 @@ jobs:
- target: x86_64-unknown-linux-gnu
cross: true
platform: linux/amd64
deps: "build-essential libssl-dev pkg-config"
env:
PKG_CONFIG_ALLOW_CROSS: "1"
OPENSSL_DIR: /usr
PKG_CONFIG_PATH: "/usr/lib/pkgconfig:/usr/share/pkgconfig"
- target: x86_64-pc-windows-gnu
cross: true
platform: linux/amd64
deps: "build-essential gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64"
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
steps:
- name: Checkout code
@ -63,39 +72,37 @@ jobs:
chmod +x "release-artifacts/$OUTPUT_NAME"
ls -lh "release-artifacts/$OUTPUT_NAME"
- name: Cross-Build Release (Linux x86_64)
- name: Cross-Build Linux x86_64 Release
if: matrix.target == 'x86_64-unknown-linux-gnu'
uses: docker://rust:alpine
uses: docker://rust:slim
with:
args: >
sh -c "
apk add --no-cache build-base openssl-dev pkgconf &&
apt-get update && apt-get install -y ${{ matrix.deps }} &&
rustup target add x86_64-unknown-linux-gnu &&
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:
CARGO_TARGET_DIR: target
options: --platform linux/amd64
mkdir -p /github/workspace/release-artifacts &&
cp target/x86_64-unknown-linux-gnu/release/uptime-kuma-dashboard /github/workspace/release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu &&
strip /github/workspace/release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu &&
chmod +x /github/workspace/release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu &&
ls -lh /github/workspace/release-artifacts/"
env: ${{ matrix.env }}
options: --platform ${{ matrix.platform }}
- name: Cross-Build Release (Windows x86_64)
- name: Cross-Build Windows x86_64 Release
if: matrix.target == 'x86_64-pc-windows-gnu'
uses: docker://rust:alpine
uses: docker://rust:slim
with:
args: >
sh -c "
apk add --no-cache build-base mingw-w64-gcc mingw-w64-headers mingw-w64-crt mingw-w64-winpthreads
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 &&
ls -lh release-artifacts/"
env:
CARGO_TARGET_DIR: target
options: --platform linux/amd64
mkdir -p /github/workspace/release-artifacts &&
cp target/x86_64-pc-windows-gnu/release/uptime-kuma-dashboard.exe /github/workspace/release-artifacts/uptime-kuma-dashboard-x86_64-pc-windows-gnu.exe &&
ls -lh /github/workspace/release-artifacts/"
env: ${{ matrix.env }}
options: --platform ${{ matrix.platform }}
- name: Upload artifacts
uses: https://data.forgejo.org/forgejo/upload-artifact@v4