generated from bitsquid_dt/dt-plugin-template
27 lines
855 B
Makefile
27 lines
855 B
Makefile
fly_target := "main"
|
|
game_dir := env("local_game_dir")
|
|
|
|
build:
|
|
docker run \
|
|
--rm \
|
|
-t \
|
|
--user "$(id -u):$(id -g)" \
|
|
-v ./:/src/plugin \
|
|
registry.sclu1034.dev/rust-xwin-ci \
|
|
cargo build -Zbuild-std --target x86_64-pc-windows-msvc
|
|
cp target/x86_64-pc-windows-msvc/debug/dt_p2p.dll "{{game_dir}}/binaries/plugins/dt_p2p_pluginw64_release.dll"
|
|
|
|
log:
|
|
#!/bin/sh
|
|
exec bat "$log_dir/$(\ls $log_dir | tail -1)"
|
|
|
|
set-base-pipeline:
|
|
fly -t {{fly_target}} set-pipeline \
|
|
--pipeline dt-p2p \
|
|
--config .ci/pipelines/set-pr-pipelines.yml \
|
|
-v forgejo_url=https://git.sclu1034.dev \
|
|
-v forgejo_api_key=${FORGEJO_API_KEY} \
|
|
-v registry_user=${REGISTRY_USER} \
|
|
-v registry_password=${REGISTRY_PASSWORD} \
|
|
-v owner=bitsquid_dt \
|
|
-v repo=p2p
|