when:
- event: tag
ref: refs/tags/v*
matrix:
include:
- target: x86_64-unknown-linux-gnu
image: rust
build: cargo build
- target: x86_64-unknown-linux-musl
image: rust
build: cargo build
- target: x86_64-pc-windows-msvc
image: messense/cargo-xwin
build: cargo xwin build
extension: .exe
- target: i686-pc-windows-msvc
image: messense/cargo-xwin
build: cargo xwin build --xwin-arch=x86
extension: .exe
- target: aarch64-pc-windows-msvc
image: messense/cargo-xwin
build: cargo xwin build
extension: .exe
- target: x86_64-apple-darwin
image: messense/cargo-zigbuild
build: cargo zigbuild
- target: aarch64-apple-darwin
image: messense/cargo-zigbuild
build: cargo zigbuild
steps:
- name: Build
image: ${image}
environment:
CARGO_TERM_COLOR: always
commands:
- rustup target add ${target}
- ${build} --release --target ${target}
- name: Rename Binaries
image: ${image}
commands:
- mv 'target/${target}/release/mcfunction-debugger${extension}' 'target/${target}/release/mcfunction-debugger-${target}${extension}'
- name: Release
image: woodpeckerci/plugin-gitea-release
settings:
api_key:
from_secret: CODEBERG_RELEASE_TOKEN
base_url: https://codeberg.org
files:
- target/${target}/release/mcfunction-debugger-${target}${extension}