Testing workflow
Some checks failed
Multi-Platform Release Build / build (false, linux/arm64, native) (push) Successful in 13m4s
Multi-Platform Release Build / build (true, build-essential gcc-x86-64-linux-gnu libc6-dev-amd64-cross pkg-config, map[CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER:x86_64-linux-gnu-gcc], linux/amd64, x86_64-unknown-linux-gnu) (push) Failing after 14m6s
Multi-Platform Release Build / build (true, gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 cmake nasm, 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) Successful in 19m24s
Multi-Platform Release Build / create-release (push) Has been skipped

This commit is contained in:
Marco De Araujo 2026-01-04 15:31:47 -04:00
parent d80bc544dc
commit 4347996e2b

View file

@ -17,7 +17,7 @@ jobs:
- target: x86_64-unknown-linux-gnu - target: x86_64-unknown-linux-gnu
cross: true cross: true
platform: linux/amd64 platform: linux/amd64
deps: "gcc-x86-64-linux-gnu libc6-dev-amd64-cross" deps: "build-essential gcc-x86-64-linux-gnu libc6-dev-amd64-cross pkg-config"
env: env:
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: x86_64-linux-gnu-gcc CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: x86_64-linux-gnu-gcc
@ -38,10 +38,6 @@ jobs:
with: with:
toolchain: stable toolchain: stable
- name: Add Rust target
if: matrix.target != 'native'
run: rustup target add ${{ matrix.target }}
- name: Cache Rust dependencies - name: Cache Rust dependencies
uses: https://code.forgejo.org/actions/cache@v4 uses: https://code.forgejo.org/actions/cache@v4
with: with:
@ -76,14 +72,15 @@ jobs:
with: with:
args: > args: >
sh -c " sh -c "
apt-get update && apt-get install -y build-essential ${{ matrix.deps }} pkg-config && rustup target add ${{ matrix.target }} &&
apt-get update && apt-get install -y ${{ matrix.deps }} &&
mkdir -p ~/.cargo && mkdir -p ~/.cargo &&
echo '[target.x86_64-unknown-linux-gnu]\nlinker = \"x86_64-linux-gnu-gcc\"' > ~/.cargo/config.toml && echo '[target.${{ matrix.target }}]\nlinker = \"x86_64-linux-gnu-gcc\"' > ~/.cargo/config.toml &&
cargo build --release --target x86_64-unknown-linux-gnu && cargo build --release --target ${{ matrix.target }} &&
mkdir -p release-artifacts && 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 && cp target/${{ matrix.target }}/release/uptime-kuma-dashboard release-artifacts/uptime-kuma-dashboard-${{ matrix.target }} &&
strip release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && strip release-artifacts/uptime-kuma-dashboard-${{ matrix.target }} &&
chmod +x release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu" chmod +x release-artifacts/uptime-kuma-dashboard-${{ matrix.target }}"
env: ${{ matrix.env }} env: ${{ matrix.env }}
options: --platform ${{ matrix.platform }} options: --platform ${{ matrix.platform }}
@ -93,10 +90,11 @@ jobs:
with: with:
args: > args: >
sh -c " sh -c "
rustup target add ${{ matrix.target }} &&
apt-get update && apt-get install -y ${{ matrix.deps }} && apt-get update && apt-get install -y ${{ matrix.deps }} &&
cargo build --release --target x86_64-pc-windows-gnu && cargo build --release --target ${{ matrix.target }} &&
mkdir -p release-artifacts && 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 && cp target/${{ matrix.target }}/release/uptime-kuma-dashboard.exe release-artifacts/uptime-kuma-dashboard-${{ matrix.target }}.exe &&
ls -lh release-artifacts/" ls -lh release-artifacts/"
env: ${{ matrix.env }} env: ${{ matrix.env }}
options: --platform ${{ matrix.platform }} options: --platform ${{ matrix.platform }}