mirror of
https://onedev.site.tesses.net/crosslang/crosslangdevstudio
synced 2026-02-08 09:15:45 +00:00
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
version: 39
|
|
jobs:
|
|
- name: Build
|
|
steps:
|
|
- !CheckoutStep
|
|
name: Checkout
|
|
cloneCredential: !DefaultCredential {}
|
|
withLfs: true
|
|
withSubmodules: true
|
|
cloneDepth: 1
|
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
- !CommandStep
|
|
name: Build
|
|
runInContainer: true
|
|
image: mcr.microsoft.com/dotnet/sdk:9.0
|
|
interpreter: !DefaultInterpreter
|
|
commands: |
|
|
apt update -y
|
|
apt install -y nsis cmake g++-mingw-w64-i686-win32 make
|
|
mkdir artifacts
|
|
cd Packaging/Windows
|
|
bash build.sh
|
|
cd ../Linux
|
|
bash build.sh
|
|
bash publish.sh
|
|
envVars:
|
|
- name: GITEA_AUTH
|
|
value: '@secret:GITEA_AUTH@'
|
|
useTTY: true
|
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
- !SCPCommandStep
|
|
name: Copy Files
|
|
privateKeySecret: TRUENAS_SSH
|
|
source: artifacts
|
|
target: mike@@10.137.42.30:/mnt/storage24tb/Files/Public/CrossLangDevStudio/@build_number@
|
|
options: -r
|
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
- !SSHCommandStep
|
|
name: Link latest
|
|
remoteMachine: 10.137.42.30
|
|
userName: mike
|
|
privateKeySecret: TRUENAS_SSH
|
|
commands: |
|
|
cd /mnt/storage24tb/Files/Public/CrossLangDevStudio
|
|
ln -s @build_number@ latest
|
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
triggers:
|
|
- !BranchUpdateTrigger
|
|
branches: master
|
|
projects: crosslang/crosslangdevstudio
|
|
retryCondition: never
|
|
maxRetries: 3
|
|
retryDelay: 30
|
|
timeout: 14400
|