image: alpine/edge packages: - rustup sources: - https://git.srht.e3t.cc/~starkingdoms/starkingdoms secrets: - 4c3e0693-3aff-45f5-81c9-7bdcf1ab231d - 6aa0cc65-cd00-42eb-958e-482543dc7baf environment: SCCACHE_BUCKET: sccache SCCACHE_ENDPOINT: https://s3.iad.xny.onl SCCACHE_REGION: auto RUSTC_WRAPPER: sccache BINSTALL_DISABLE_TELEMETRY: true tasks: - setup: | rustup-init -y echo '. "$HOME/.cargo/env"' > ~/.profile source ~/.profile rustup target add wasm32-unknown-unknown sudo apk add zlib zlib-dev wget binaryen sudo wget https://coredoes.dev/sccache -O /usr/local/bin/sccache sudo chmod 0755 /usr/local/bin/sccache curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash cargo binstall wasm-bindgen-cli --version 0.2.118 --no-confirm - web_client: | source ~/.profile cd starkingdoms cargo xtask unified:web:client - linux_native: | source ~/.profile cd starkingdoms cargo build --release -F native -F client -F server