Add .onedev-buildspec.yml

This commit is contained in:
2025-08-31 05:34:42 +00:00
parent 810af7aff6
commit 52adc41974

34
.onedev-buildspec.yml Normal file
View File

@@ -0,0 +1,34 @@
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 makensis cmake g++-mingw-w64-i686-win32 make
bash Packaging/Windows/build.sh
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !PublishArtifactStep
name: Publish Windows Artifact
artifacts: Packaging/Windows/build/package/CrossLangDevStudio-Installer.exe
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger
branches: master
projects: crosslang/crosslangdevstudio
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 14400