Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,42 @@ jobs:
git config --local advice.detachedHead false
git checkout FETCH_HEAD
git submodule update --init --depth 1
workingDirectory: $(Agent.BuildDirectory)\Source
workingDirectory: $(Agent.BuildDirectory)/Source
failOnStderr: false

- task: CmdLine@2
displayName: "Apply patches"
inputs:
script: |
git apply $(Build.SourcesDirectory)\Patches\Patch001.patch
git apply $(Build.SourcesDirectory)\Patches\Patch002.patch
workingDirectory: $(Agent.BuildDirectory)\Source
git apply $(Build.SourcesDirectory)/Patches/Patch001.patch
git apply $(Build.SourcesDirectory)/Patches/Patch002.patch
workingDirectory: $(Agent.BuildDirectory)/Source
failOnStderr: true

- task: CmdLine@2
displayName: "Brew install dependencies"
inputs:
script: |
brew install openssl@1.1
brew update
brew reinstall openssl@1.1
brew link --force openssl@1.1
brew install protobuf@21
brew list protobuf@21 || brew install protobuf@21
brew link --force protobuf@21
workingDirectory: $(Agent.BuildDirectory)
failOnStderr: true
failOnStderr: false

- task: CmdLine@2
displayName: "CMake generate solution"
inputs:
script: |
cmake -G "$(CMAKE_GENERATOR)" -T buildsystem=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -B Build -S Source
cmake -G "$(CMAKE_GENERATOR)" -T buildsystem=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_OSX_ARCHITECTURES="x86_64" -B Build -S Source
workingDirectory: $(Agent.BuildDirectory)
failOnStderr: true

- task: Xcode@5
inputs:
actions: build
configuration: Release
xcWorkspacePath:
xcWorkspacePath: "$(Agent.BuildDirectory)/Build/GameNetworkingSockets.xcodeproj/project.xcworkspace"
scheme: "ALL_BUILD"
SDK: "macosx13.1"