Skip to content

Commit

Permalink
Cleanup for YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Oct 5, 2024
1 parent 630013e commit 7781a03
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 85 deletions.
16 changes: 12 additions & 4 deletions build/DirectXMath-GitHub-CMake-Dev17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ resources:
type: git
ref: refs/heads/main
trigger: none
- repository: testRepo
name: walbourn/directxmathtest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand All @@ -39,7 +44,6 @@ variables:
VS_GENERATOR: 'Visual Studio 17 2022'
WIN10_SDK: '10.0.19041.0'
WIN11_SDK: '10.0.22000.0'
GITHUB_PAT: $(GITHUBPUBLICTOKEN)

pool:
vmImage: windows-2022
Expand All @@ -52,10 +56,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CMake@1
displayName: 'CMake (MSVC): Config x64'
inputs:
Expand Down
16 changes: 12 additions & 4 deletions build/DirectXMath-GitHub-CMake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,18 @@ resources:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxmathtest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

variables:
Codeql.Enabled: false
VS_GENERATOR: 'Visual Studio 16 2019'
WIN10_SDK: '10.0.19041.0'
GITHUB_PAT: $(GITHUBPUBLICTOKEN)

pool:
vmImage: windows-2019
Expand All @@ -60,10 +64,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CMake@1
displayName: CMake (MSVC x64)
inputs:
Expand Down
61 changes: 26 additions & 35 deletions build/DirectXMath-GitHub-Dev17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ resources:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxmathtest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand All @@ -36,7 +41,6 @@ pool:
variables:
Codeql.Enabled: false
VC_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
GITHUB_PAT: $(GITHUBPUBLICTOKEN)

jobs:
- job: BUILD_DEV17
Expand All @@ -46,17 +50,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: DeleteFiles@1
displayName: Delete files from Tests
inputs:
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86dbg
inputs:
Expand Down Expand Up @@ -339,19 +340,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: DeleteFiles@1
displayName: Delete files from Tests
inputs:
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
workingDirectory: $(Build.SourcesDirectory)
failOnStderr: true
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CmdLine@2
displayName: Setup environment for CMake to use VS
inputs:
Expand Down Expand Up @@ -417,19 +413,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: DeleteFiles@1
displayName: Delete files from Tests
inputs:
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
workingDirectory: $(Build.SourcesDirectory)
failOnStderr: true
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CmdLine@2
displayName: Setup environment for CMake to use VS
inputs:
Expand Down
30 changes: 20 additions & 10 deletions build/DirectXMath-GitHub-MinGW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ resources:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxmathtest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand All @@ -49,7 +54,6 @@ pool:

variables:
Codeql.Enabled: false
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
URL_MINGW32: https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-14.0.6-10.0.0-ucrt-r2/winlibs-i686-posix-dwarf-gcc-12.2.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r2.zip
HASH_MINGW32: 'fcd1e11b896190da01c83d5b5fb0d37b7c61585e53446c2dab0009debc3915e757213882c35e35396329338de6f0222ba012e23a5af86932db45186a225d1272'

Expand All @@ -60,11 +64,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
workingDirectory: $(Build.SourcesDirectory)
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: PowerShell@2
displayName: Install MinGW32
inputs:
Expand Down Expand Up @@ -123,16 +130,19 @@ jobs:
cmakeArgs: --build out3

- job: MINGW64_BUILD
displayName: 'Minimalist GNU for Windows (MinGW-W64) BUILD_TESTING=ON'
displayName: 'Minimalist GNU for Windows (MinGW-W64)'
steps:
- checkout: self
clean: true
fetchTags: false
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
workingDirectory: $(Build.SourcesDirectory)
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CmdLine@2
displayName: GCC version
inputs:
Expand Down
18 changes: 13 additions & 5 deletions build/DirectXMath-GitHub-WSL-11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ resources:
type: git
ref: refs/heads/main
trigger: none
- repository: testRepo
name: walbourn/directxmathtest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand All @@ -39,7 +44,6 @@ pool:

variables:
Codeql.Enabled: false
GITHUB_PAT: $(GITHUBPUBLICTOKEN)

jobs:
- job: BUILD_WSL
Expand All @@ -48,10 +52,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: CmdLine@2
displayName: Fetch tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CMake@1
displayName: DirectXMath Tests
inputs:
Expand Down
18 changes: 13 additions & 5 deletions build/DirectXMath-GitHub-WSL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ resources:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxmathtest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand All @@ -49,7 +54,6 @@ pool:

variables:
Codeql.Enabled: false
GITHUB_PAT: $(GITHUBPUBLICTOKEN)

jobs:
- job: BUILD_WSL
Expand All @@ -58,10 +62,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: CmdLine@2
displayName: Fetch tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CMake@1
displayName: DirectXMath Tests
inputs:
Expand Down
33 changes: 19 additions & 14 deletions build/DirectXMath-GitHub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ resources:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxmathtest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand All @@ -35,7 +40,6 @@ pool:

variables:
Codeql.Enabled: false
GITHUB_PAT: $(GITHUBPUBLICTOKEN)

jobs:
- job: BUILD_DEV16
Expand All @@ -45,17 +49,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: DeleteFiles@1
displayName: Delete files from Tests
inputs:
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: VSBuild@1
displayName: Build solution math3_2019.sln x86dbg
inputs:
Expand Down Expand Up @@ -329,10 +330,14 @@ jobs:
- checkout: self
clean: true
fetchTags: false
- task: CmdLine@2
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: VSBuild@1
displayName: Build solution math3_2017.sln x86dbg
inputs:
Expand Down
Loading

0 comments on commit 7781a03

Please sign in to comment.