Skip to content

Commit

Permalink
Add macOS build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
geniiii committed Jun 1, 2020
1 parent c5768a8 commit 99645d9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,23 @@ jobs:
inputs:
artifactName: patcher
pathToPublish: $(Build.ArtifactStagingDirectory)

- job: macOS
pool:
vmImage: macos-latest

steps:
- script: clang -std=c99 -pedantic -Wextra -O3 -o patcher src/main.c src/patches.c src/checks.c
displayName: 'Build'

- bash: mv $SYSTEM_DEFAULTWORKINGDIRECTORY/patcher $BUILD_ARTIFACTSTAGINGDIRECTORY/patcher-macOS
displayName: Move binary to artifact directory

- task: PublishBuildArtifacts@1
displayName: Upload binary to artifacts
inputs:
artifactName: patcher
pathToPublish: $(Build.ArtifactStagingDirectory)

- job: Release
displayName: Create GitHub Release
Expand All @@ -55,6 +72,7 @@ jobs:
dependsOn:
- Windows
- Linux
- macOS

steps:
- task: DownloadBuildArtifacts@0
Expand Down

0 comments on commit 99645d9

Please sign in to comment.