|
1 | | -# Copyright (c) Microsoft Corporation. |
2 | | -# Licensed under the MIT License. |
3 | | -# |
4 | | -# https://go.microsoft.com/fwlink/?LinkId=248926 |
5 | | - |
6 | | -name: 'BVTs (arm64)' |
7 | | - |
8 | | -on: |
9 | | - push: |
10 | | - branches: "main" |
11 | | - paths-ignore: |
12 | | - - '*.md' |
13 | | - - LICENSE |
14 | | - - '.azuredevops/**' |
15 | | - - '.nuget/*' |
16 | | - - build/*.cmd |
17 | | - - build/*.json |
18 | | - - build/*.props |
19 | | - - build/*.ps1 |
20 | | - - build/*.targets |
21 | | - - build/*.xvd |
22 | | - pull_request: |
23 | | - branches: "main" |
24 | | - paths-ignore: |
25 | | - - '*.md' |
26 | | - - LICENSE |
27 | | - - '.azuredevops/**' |
28 | | - - '.nuget/*' |
29 | | - - build/*.cmd |
30 | | - - build/*.json |
31 | | - - build/*.props |
32 | | - - build/*.ps1 |
33 | | - - build/*.targets |
34 | | - - build/*.xvd |
35 | | - |
36 | | -permissions: |
37 | | - contents: read |
38 | | - |
39 | | -jobs: |
40 | | - build: |
41 | | - runs-on: windows-11-arm |
42 | | - timeout-minutes: 60 |
43 | | - |
44 | | - strategy: |
45 | | - fail-fast: false |
46 | | - |
47 | | - matrix: |
48 | | - build_type: [arm64-Release] |
49 | | - |
50 | | - steps: |
51 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
52 | | - |
53 | | - - name: Clone test repository |
54 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
55 | | - with: |
56 | | - repository: walbourn/directxtextest |
57 | | - path: Tests |
58 | | - ref: main |
59 | | - |
60 | | - - name: 'Install Ninja' |
61 | | - run: choco install ninja |
62 | | - |
63 | | - - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
64 | | - with: |
65 | | - arch: arm64 |
66 | | - |
67 | | - - name: 'Set triplet' |
68 | | - shell: pwsh |
69 | | - run: echo "VCPKG_DEFAULT_TRIPLET=arm64-windows" >> $env:GITHUB_ENV |
70 | | - |
71 | | - - name: Get vcpkg commit hash |
72 | | - shell: pwsh |
73 | | - run: | |
74 | | - if ($Env:vcpkgRelease) { |
75 | | - echo "Using vcpkg commit from repo variable..." |
76 | | - $VCPKG_COMMIT_ID = $Env:vcpkgRelease |
77 | | - } |
78 | | - else { |
79 | | - echo "Fetching latest vcpkg commit hash..." |
80 | | - $commit = (git ls-remote https://github.com/microsoft/vcpkg.git HEAD | Select-String -Pattern '([a-f0-9]{40})').Matches.Value |
81 | | - $VCPKG_COMMIT_ID = $commit |
82 | | - } |
83 | | - Write-Host "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID" |
84 | | - echo "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID" >> $env:GITHUB_ENV |
85 | | - env: |
86 | | - vcpkgRelease: '${{ vars.VCPKG_COMMIT_ID }}' |
87 | | - |
88 | | - - uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11 |
89 | | - with: |
90 | | - runVcpkgInstall: true |
91 | | - vcpkgJsonGlob: '**/build/vcpkg.json' |
92 | | - vcpkgGitCommitId: '${{ env.VCPKG_COMMIT_ID }}' |
93 | | - |
94 | | - - name: 'Configure CMake' |
95 | | - working-directory: ${{ github.workspace }} |
96 | | - run: > |
97 | | - cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DBUILD_SAMPLE=OFF -DBUILD_BVT=ON |
98 | | - -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_MANIFEST_DIR="${{ github.workspace }}/build" |
99 | | - -DVCPKG_TARGET_TRIPLET="${env:VCPKG_DEFAULT_TRIPLET}" |
100 | | -
|
101 | | - - name: 'Build' |
102 | | - working-directory: ${{ github.workspace }} |
103 | | - run: cmake --build out\build\${{ matrix.build_type }} |
104 | | - |
105 | | - - name: 'Run BVTs' |
106 | | - working-directory: ${{ github.workspace }} |
107 | | - run: ctest --preset=${{ matrix.build_type }} --output-on-failure |
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# https://go.microsoft.com/fwlink/?LinkId=248926 |
| 5 | + |
| 6 | +name: 'BVTs (arm64)' |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: "main" |
| 11 | + paths-ignore: |
| 12 | + - '*.md' |
| 13 | + - LICENSE |
| 14 | + - '.azuredevops/**' |
| 15 | + - '.nuget/*' |
| 16 | + - build/*.cmd |
| 17 | + - build/*.json |
| 18 | + - build/*.props |
| 19 | + - build/*.ps1 |
| 20 | + - build/*.targets |
| 21 | + - build/*.xvd |
| 22 | + pull_request: |
| 23 | + branches: "main" |
| 24 | + paths-ignore: |
| 25 | + - '*.md' |
| 26 | + - LICENSE |
| 27 | + - '.azuredevops/**' |
| 28 | + - '.nuget/*' |
| 29 | + - build/*.cmd |
| 30 | + - build/*.json |
| 31 | + - build/*.props |
| 32 | + - build/*.ps1 |
| 33 | + - build/*.targets |
| 34 | + - build/*.xvd |
| 35 | + |
| 36 | +permissions: |
| 37 | + contents: read |
| 38 | + |
| 39 | +jobs: |
| 40 | + build: |
| 41 | + runs-on: windows-11-arm |
| 42 | + timeout-minutes: 60 |
| 43 | + |
| 44 | + strategy: |
| 45 | + fail-fast: false |
| 46 | + |
| 47 | + matrix: |
| 48 | + build_type: [arm64-Release] |
| 49 | + |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 52 | + |
| 53 | + - name: Clone test repository |
| 54 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 55 | + with: |
| 56 | + repository: walbourn/directxtextest |
| 57 | + path: Tests |
| 58 | + ref: main |
| 59 | + |
| 60 | + - name: 'Install Ninja' |
| 61 | + run: choco install ninja |
| 62 | + |
| 63 | + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
| 64 | + with: |
| 65 | + arch: arm64 |
| 66 | + |
| 67 | + - name: 'Set triplet' |
| 68 | + shell: pwsh |
| 69 | + run: echo "VCPKG_DEFAULT_TRIPLET=arm64-windows" >> $env:GITHUB_ENV |
| 70 | + |
| 71 | + - name: Get vcpkg commit hash |
| 72 | + shell: pwsh |
| 73 | + run: | |
| 74 | + if ($Env:vcpkgRelease) { |
| 75 | + echo "Using vcpkg commit from repo variable..." |
| 76 | + $VCPKG_COMMIT_ID = $Env:vcpkgRelease |
| 77 | + } |
| 78 | + else { |
| 79 | + echo "Fetching latest vcpkg commit hash..." |
| 80 | + $commit = (git ls-remote https://github.com/microsoft/vcpkg.git HEAD | Select-String -Pattern '([a-f0-9]{40})').Matches.Value |
| 81 | + $VCPKG_COMMIT_ID = $commit |
| 82 | + } |
| 83 | + Write-Host "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID" |
| 84 | + echo "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID" >> $env:GITHUB_ENV |
| 85 | + env: |
| 86 | + vcpkgRelease: '${{ vars.VCPKG_COMMIT_ID }}' |
| 87 | + |
| 88 | + - uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11 |
| 89 | + with: |
| 90 | + runVcpkgInstall: true |
| 91 | + vcpkgJsonGlob: '**/build/vcpkg.json' |
| 92 | + vcpkgGitCommitId: '${{ env.VCPKG_COMMIT_ID }}' |
| 93 | + |
| 94 | + - name: 'Configure CMake' |
| 95 | + working-directory: ${{ github.workspace }} |
| 96 | + run: > |
| 97 | + cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DBUILD_SAMPLE=OFF -DBUILD_BVT=ON |
| 98 | + -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_MANIFEST_DIR="${{ github.workspace }}/build" |
| 99 | + -DVCPKG_TARGET_TRIPLET="${env:VCPKG_DEFAULT_TRIPLET}" |
| 100 | +
|
| 101 | + - name: 'Build' |
| 102 | + working-directory: ${{ github.workspace }} |
| 103 | + run: cmake --build out\build\${{ matrix.build_type }} |
| 104 | + |
| 105 | + - name: 'Run BVTs' |
| 106 | + working-directory: ${{ github.workspace }} |
| 107 | + run: ctest --preset=${{ matrix.build_type }} --output-on-failure |
0 commit comments