Testing workflow
Some checks failed
Multi-Platform Release Build / build (false, linux/arm64, native) (push) Successful in 5m17s
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) Successful in 12m30s
Multi-Platform Release Build / build (true, linux/amd64, x86_64-unknown-linux-gnu) (push) Failing after 2m33s
Multi-Platform Release Build / create-release (push) Has been skipped
Some checks failed
Multi-Platform Release Build / build (false, linux/arm64, native) (push) Successful in 5m17s
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) Successful in 12m30s
Multi-Platform Release Build / build (true, linux/amd64, x86_64-unknown-linux-gnu) (push) Failing after 2m33s
Multi-Platform Release Build / create-release (push) Has been skipped
This commit is contained in:
parent
7bb7a5a6b1
commit
3c95626cf9
1 changed files with 7 additions and 14 deletions
|
|
@ -17,13 +17,6 @@ jobs:
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
cross: true
|
cross: true
|
||||||
platform: linux/amd64
|
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
|
- target: x86_64-pc-windows-gnu
|
||||||
cross: true
|
cross: true
|
||||||
|
|
@ -76,20 +69,20 @@ jobs:
|
||||||
|
|
||||||
- name: Cross-Build Linux x86_64 Release
|
- name: Cross-Build Linux x86_64 Release
|
||||||
if: matrix.target == 'x86_64-unknown-linux-gnu'
|
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:
|
with:
|
||||||
args: >
|
args: >
|
||||||
sh -c "
|
sh -c "
|
||||||
echo 'OPENSSL_DIR:' $OPENSSL_DIR &&
|
export OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu
|
||||||
apt-get update && apt-get install -y ${{ matrix.deps }} &&
|
export OPENSSL_INCLUDE_DIR=/usr/include/openssl
|
||||||
rustup target add x86_64-unknown-linux-gnu &&
|
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 &&
|
cargo build --release --target x86_64-unknown-linux-gnu &&
|
||||||
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/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 &&
|
strip release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu &&
|
||||||
chmod +x 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 }}
|
|
||||||
options: --platform ${{ matrix.platform }}
|
options: --platform ${{ matrix.platform }}
|
||||||
|
|
||||||
- name: Cross-Build Windows x86_64 Release
|
- name: Cross-Build Windows x86_64 Release
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue