Skip to content

Commit

Permalink
ci: Fix azure-pipelines git-lfs
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Nov 22, 2023
1 parent 44c6ea3 commit 75577ae
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .azure-pipelines/shared/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ parameters:
default: build

steps:
- checkout: self
lfs: true
- script: |
rm -rf ${{ parameters.sourceDir }}/${{ parameters.buildDir }}
mkdir -p ${{ parameters.sourceDir }}/${{ parameters.buildDir }}
Expand Down
3 changes: 3 additions & 0 deletions .azure-pipelines/shared/build_mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ parameters:
default: "true"

steps:
- checkout: self
lfs: true

# - script: choco install -y ninja
# displayName: 'Install Ninja'

Expand Down
3 changes: 3 additions & 0 deletions .azure-pipelines/shared/build_msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ parameters:
default: "true"

steps:
- checkout: self
lfs: true

- powershell: ./.azure-pipelines/shared/install_vulkan.ps1
displayName: Install Vulkan SDK
workingDirectory: "${{ parameters.sourceDir }}"
Expand Down
3 changes: 3 additions & 0 deletions .azure-pipelines/shared/check_clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
container: khronosgroup/docker-images:openxr-sdk.20230323
# container: khronosgroup/docker-images@sha256:20edadbaa6cdec4fed7417c24b18dfb4b93eec940fdf1a27b5f97272dec47032
steps:
- checkout: self
lfs: true

- script: ./runClangFormat.sh
displayName: Run clang-format

Expand Down
38 changes: 19 additions & 19 deletions .azure-pipelines/shared/check_file_format.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Copyright (c) 2020-2023, The Khronos Group Inc.
# SPDX-License-Identifier: Apache-2.0
jobs:
- job: check_file_format
displayName: 'Check file formatting'
pool:
vmImage: 'ubuntu-latest'
container: khronosgroup/docker-images:openxr-sdk.20230323
# container: khronosgroup/docker-images@sha256:20edadbaa6cdec4fed7417c24b18dfb4b93eec940fdf1a27b5f97272dec47032
steps:
- script: ./file_format.sh
displayName: File formatting checks (file_format.sh)
- job: check_file_format
displayName: "Check file formatting"
pool:
vmImage: "ubuntu-latest"
container: khronosgroup/docker-images:openxr-sdk.20230323
# container: khronosgroup/docker-images@sha256:20edadbaa6cdec4fed7417c24b18dfb4b93eec940fdf1a27b5f97272dec47032
steps:
- script: ./file_format.sh
displayName: File formatting checks (file_format.sh)

- script: git diff --patch --exit-code > file_format.patch
displayName: Save changes as diff
- script: echo "The following files need file formatting:"; sed -n -e "s/^diff.* b\///p" file_format.patch
condition: failed()
- task: PublishPipelineArtifact@1
displayName: Publish diff
condition: failed()
inputs:
path: $(System.DefaultWorkingDirectory)/file_format.patch
artifact: file_format_changes
- script: git diff --patch --exit-code > file_format.patch
displayName: Save changes as diff
- script: echo "The following files need file formatting:"; sed -n -e "s/^diff.* b\///p" file_format.patch
condition: failed()
- task: PublishPipelineArtifact@1
displayName: Publish diff
condition: failed()
inputs:
path: $(System.DefaultWorkingDirectory)/file_format.patch
artifact: file_format_changes
3 changes: 3 additions & 0 deletions .azure-pipelines/shared/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ jobs:
container: khronosgroup/docker-images:openxr-sdk.20230323
# container: khronosgroup/docker-images@sha256:20edadbaa6cdec4fed7417c24b18dfb4b93eec940fdf1a27b5f97272dec47032
steps:
- checkout: self
lfs: true

- script: ./checkCodespell
displayName: Run Codespell script

0 comments on commit 75577ae

Please sign in to comment.