Skip to content

Commit 8bda2a0

Browse files
authored
ADO pipeline changes for OpenSSF Best Practices (#193)
1 parent adaff17 commit 8bda2a0

File tree

4 files changed

+76
-8
lines changed

4 files changed

+76
-8
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ For the latest version of DirectXMath, bug reports, etc. please visit the projec
8282

8383
## Release Notes
8484

85+
FOR SECURITY ADVISORIES, see [GitHub](https://github.com/microsoft/DirectXMath/security/advisories).
86+
87+
For a full change history, see [CHANGELOG.md](https://github.com/microsoft/DirectXMath/blob/main/CHANGELOG.md).
88+
8589
* The clang/LLVM toolset currently does not respect the ``float_control`` pragma for SSE instrinsics. Therefore, the use of ``/fp:fast`` is not recommended on clang/LLVM until this issue is fixed. See [55713](https://github.com/llvm/llvm-project/issues/55713).
8690

8791
## Support
@@ -96,6 +100,8 @@ This project welcomes contributions and suggestions. Most contributions require
96100

97101
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
98102

103+
Tests for new features should also be submitted as a PR to the [Test Suite](https://github.com/walbourn/directxmathtest/wiki) repository.
104+
99105
## Code of Conduct
100106

101107
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

build/DirectXMath-GitHub-Dev17.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,38 @@ schedules:
1212
include:
1313
- main
1414

15-
trigger: none
15+
trigger:
16+
branches:
17+
include:
18+
- main
19+
paths:
20+
exclude:
21+
- '*.md'
22+
- LICENSE
23+
- CMake*
24+
- '.nuget/*'
25+
- build/*.cmake
26+
- build/*.in
1627

1728
pr:
1829
branches:
1930
include:
2031
- main
2132
paths:
22-
include:
23-
- build/DirectXMath-GitHub-Dev17.yml
33+
exclude:
34+
- '*.md'
35+
- LICENSE
36+
- CMake*
37+
- '.nuget/*'
38+
- build/*.cmake
39+
- build/*.in
40+
drafts: false
2441

2542
resources:
2643
repositories:
2744
- repository: self
2845
type: git
2946
ref: refs/heads/main
30-
trigger: none
3147

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

build/DirectXMath-GitHub.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ resources:
4747

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

50+
pool:
51+
vmImage: windows-2019
52+
5053
variables:
5154
Codeql.Enabled: false
5255
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
5356

54-
pool:
55-
vmImage: windows-2019
56-
5757
jobs:
5858
- job: BUILD_DEV16
5959
displayName: 'Visual Studio 2019 (v142)'

build/DirectXMath-SDL.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ schedules:
1313
- main
1414

1515
trigger: none
16-
pr: none
16+
17+
pr:
18+
branches:
19+
include:
20+
- main
21+
paths:
22+
include:
23+
- build/DirectXMath-SDL.yml
1724

1825
resources:
1926
repositories:
@@ -26,6 +33,7 @@ name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
2633
variables:
2734
Codeql.Enabled: true
2835
Codeql.Language: cpp
36+
VC_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
2937
VS_GENERATOR: 'Visual Studio 17 2022'
3038
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
3139

@@ -86,3 +94,41 @@ jobs:
8694
GdnBreakPolicyMinSev: 'Error'
8795
- task: ComponentGovernanceComponentDetection@0
8896
displayName: Component Detection
97+
98+
- job: VC_PREFAST
99+
displayName: 'Build using /analyze (PREFAST)'
100+
workspace:
101+
clean: all
102+
steps:
103+
- checkout: self
104+
clean: true
105+
fetchTags: false
106+
- task: CmdLine@2
107+
displayName: Fetch Tests
108+
inputs:
109+
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
110+
- task: CmdLine@2
111+
displayName: Setup environment for CMake to use VS
112+
inputs:
113+
script: |
114+
call "$(VC_PATH)\Auxiliary\Build\vcvars64.bat"
115+
echo ##vso[task.setvariable variable=WindowsSdkVerBinPath;]%WindowsSdkVerBinPath%
116+
echo ##vso[task.prependpath]%VSINSTALLDIR%Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
117+
echo ##vso[task.prependpath]%VCINSTALLDIR%Tools\Llvm\x64\bin
118+
echo ##vso[task.prependpath]%WindowsSdkBinPath%x64
119+
echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
120+
echo ##vso[task.prependpath]%VCToolsInstallDir%bin\Hostx64\x64
121+
echo ##vso[task.setvariable variable=EXTERNAL_INCLUDE;]%EXTERNAL_INCLUDE%
122+
echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%
123+
echo ##vso[task.setvariable variable=LIB;]%LIB%
124+
125+
- task: CMake@1
126+
displayName: CMake Config
127+
inputs:
128+
cwd: '$(Build.SourcesDirectory)/Tests/headertest'
129+
cmakeArgs: --preset=x64-Debug -DENABLE_CODE_ANALYSIS=ON
130+
- task: CMake@1
131+
displayName: CMake Build
132+
inputs:
133+
cwd: '$(Build.SourcesDirectory)/Tests/headertest'
134+
cmakeArgs: --build out/build/x64-Debug

0 commit comments

Comments
 (0)