@@ 1,6 1,5 @@
---
variables:
- - &rust_arm64_target 'aarch64-unknown-linux-musl'
- &rust_amd64_target 'x86_64-unknown-linux-musl'
- &rust_win_target 'x86_64-pc-windows-gnu'
- &rust_toolchain 'nightly'
@@ 11,24 10,6 @@ pipeline:
commands:
- apk add ffmpeg unzip bash
- bash fetch-assets.sh
- build-arm64:
- image: codeberg.org/comcloudway/alpine-cross:latest-arm64
- environment:
- RUST_TOOLCHAIN: *rust_toolchain
- RUST_TARGET: *rust_arm64_target
- commands:
- - apk update
- - apk add curl gcc musl-dev alsa-lib-dev
- - curl https://sh.rustup.rs -sSf | sh -s -- -y
- - source $HOME/.cargo/env
- - rustup toolchain install $RUST_TOOLCHAIN
- - rustup default $RUST_TOOLCHAIN
- - rustup target add $RUST_TARGET
- - cargo update
- - cargo build --release --target $RUST_TARGET
- - mv target/$RUST_TARGET/release/little_town LittleTown-arm64-musl
- when:
- event: [tag, deployment]
build-amd64:
image: codeberg.org/comcloudway/alpine-cross:latest-amd64
environment:
@@ 72,8 53,8 @@ pipeline:
title: "$CI_COMMIT_TAG"
notes: "$CI_COMMIT_MESSAGE"
files:
- - $CI_WORKSPACE/LittleTown-arm64-musl
- $CI_WORKSPACE/LittleTown-amd64-musl
+ - $CI_WORKSPACE/LittleTown-amd64-win
api_key:
from_secret: cb_token
when: