opc source code

This commit is contained in:
flower_linux
2026-06-09 17:27:24 +08:00
parent 70f675a48b
commit f0da5cb3c3
2002 changed files with 269812 additions and 7 deletions

View File

@@ -0,0 +1,61 @@
# Docs see here:
# https://aka.ms/yaml
jobs:
- job: 'dist_debian'
displayName: 'Dist (debian)'
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
submodules: recursive
- task: Bash@3
inputs:
targetType: FilePath
filePath: ./tools/azure-devops/debian/install.sh
failOnStderr: false
displayName: Installing required packages
- task: Bash@3
inputs:
targetType: FilePath
filePath: ./tools/azure-devops/debian/build.sh
failOnStderr: false
displayName: Building & Testing
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: libopen62541-debian
# publishing artifacts from PRs from a fork is currently blocked
condition: succeeded()
displayName: "Publish Artifact: open62541 Debian Packages"
# See https://github.com/microsoft/azure-pipelines-tasks/issues/11260#issuecomment-527343172
- bash: echo "##vso[task.setvariable variable=TAG]${BUILD_SOURCEBRANCH##refs/tags/}"
displayName: Set TAG variable for $(Build.SourceBranch)
condition: startswith(variables['Build.SourceBranch'], 'refs/tags/')
- task: GitHubRelease@0
# Only execute this task if a tags build
condition: startswith(variables['Build.SourceBranch'], 'refs/tags/')
inputs:
gitHubConnection: 'open62541-azure-bot'
repositoryName: '$(Build.Repository.Name)'
action: 'edit' # Options: create, edit, delete
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit
tagSource: 'Git tag'
#tagPattern: # Optional
tag: $(TAG) # Required when action == Edit || Action == Delete || TagSource == Manual
#title: # Optional
#releaseNotesSource: 'file' # Optional. Options: file, input
#releaseNotesFile: # Optional
#releaseNotes: # Optional
assets: '$(Build.ArtifactStagingDirectory)/*' # Optional
assetUploadMode: 'replace' # Optional. Options: delete, replace
#isDraft: false # Optional
#isPreRelease: false # Optional
addChangeLog: false # Optional
#compareWith: 'lastFullRelease' # Required when addChangeLog == True. Options: lastFullRelease, lastRelease, lastReleaseByTag
#releaseTag: # Required when compareWith == LastReleaseByTag

View File

@@ -0,0 +1,28 @@
# Docs see here:
# https://aka.ms/yaml
jobs:
- job: 'cross_freeRTOS'
displayName: 'Arch (freeRTOS)'
pool:
vmImage: 'ubuntu-20.04'
variables:
IDF_PATH: $(Build.BinariesDirectory)/esp-idf
steps:
- checkout: self
submodules: recursive
- task: Bash@3
inputs:
targetType: FilePath
filePath: ./tools/azure-devops/freeRTOS/install.sh
failOnStderr: false
displayName: Installing required packages
- task: Bash@3
inputs:
targetType: FilePath
filePath: ./tools/azure-devops/freeRTOS/build.sh
failOnStderr: false
displayName: Building & Testing

View File

@@ -0,0 +1,60 @@
# Docs see here:
# https://aka.ms/yaml
jobs:
- job: 'win_vs2019'
displayName: 'Windows (VS2019)'
pool:
vmImage: 'windows-2019'
variables:
CC_NAME: Visual Studio 16 2019
CC_SHORTNAME: VS2019
GENERATOR: Visual Studio 16 2019
FORCE_CXX: OFF
steps:
- checkout: self
submodules: recursive
- powershell: ./tools/azure-devops/win/install.ps1
displayName: Install Requirements
- powershell: ./tools/azure-devops/win/build.ps1
displayName: "Build: $(CC_NAME)"
- job: 'win_msys64'
displayName: 'Windows (msys64)'
pool:
vmImage: 'windows-2019'
variables:
CC_NAME: MinGW Makefiles
CC_SHORTNAME: mingw
GENERATOR: MinGW Makefiles
FORCE_CXX: OFF
MSYS2_ROOT: C:/msys64
steps:
- checkout: self
submodules: recursive
- powershell: ./tools/azure-devops/win/install.ps1
displayName: Install Requirements
errorActionPreference: continue # Errors are handled in the script
- powershell: ./tools/azure-devops/win/build.ps1
displayName: "Build: $(CC_NAME)"
errorActionPreference: continue # If set to Stop, we only get a truncated exception message. Error is handled by checking exit code
- job: 'win_clang'
displayName: 'Windows (clang)'
pool:
vmImage: 'windows-2019'
variables:
CC_NAME: Clang
CC_SHORTNAME: clang-mingw
GENERATOR: MinGW Makefiles
FORCE_CXX: OFF
MSYS2_ROOT: C:/msys64
steps:
- checkout: self
submodules: recursive
- powershell: ./tools/azure-devops/win/install.ps1
displayName: Install Requirements
errorActionPreference: continue # Errors are handled in the script
- powershell: ./tools/azure-devops/win/build.ps1
displayName: "Build: $(CC_NAME)"
errorActionPreference: continue # If set to Stop, we only get a truncated exception message. Error is handled by checking exit code