Files
layer4-proxy/.woodpecker/build.yaml

56 lines
1.6 KiB
YAML
Raw Normal View History

2026-04-08 22:50:56 +02:00
# .woodpecker.yml
2026-04-08 23:04:58 +02:00
when:
- event: push
2026-04-08 22:50:56 +02:00
matrix:
include:
- TARGET: aarch64-unknown-linux-musl
SHORT: arm64-musl
- TARGET: x86_64-pc-windows-gnu
SHORT: windows
- TARGET: x86_64-unknown-linux-musl
SHORT: amd64-musl
2026-04-08 23:04:58 +02:00
steps:
- name: Prepare
image: img.kie.rs/jjkiers/rust-crossbuild:rust1.79.0-zig0.11.0-zig
commands:
- echo Using image img.kie.rs/jjkiers/rust-crossbuild:rust1.79.0-zig0.11.0-zig
- whoami && pwd && ls -lahR /woodpecker
- mkdir -p artifacts
- cargo --version
- rustc --version
# - name: Build for ${SHORT}
# image: img.kie.rs/jjkiers/rust-crossbuild:rust1.79.0-zig0.11.0-zig
# commands:
# - bash -lc 'if echo "${SHORT}" | grep -q windows; then BIN_SUFFIX=.exe; else BIN_SUFFIX=; fi; echo "Building ${TARGET} (${SHORT})"; cargo zigbuild --release --target ${TARGET}; mkdir -p artifacts; cp target/${TARGET}/release/l4p${BIN_SUFFIX} artifacts/l4p-${TARGET}${BIN_SUFFIX}; rm -rf target/${TARGET}/release/*'
# depends_on:
# - Prepare
# volumes:
# - name: target-${TARGET}
# path: /drone/src/target
#
# - name: Show built artifacts
# image: img.kie.rs/jjkiers/rust-crossbuild:rust1.79.0-zig0.11.0-zig
# commands:
# - ls -lah artifacts
# depends_on:
# - Build for ${SHORT}
#
# - name: Create release on gitea
# image: plugins/gitea-release
# settings:
# api_key:
# from_secret: gitea_token
# base_url: https://code.kiers.eu
# files: artifacts/*
# checksum: sha256
# when:
# event:
# - tag
# - promote
# depends_on:
# - Show built artifacts
#