|
1 | | -# Copyright 2021-2023, Collabora, Ltd. |
| 1 | +# Copyright 2021-2022, Collabora, Ltd. |
2 | 2 | # SPDX-License-Identifier: CC0-1.0 |
3 | 3 |
|
4 | 4 | name: Windows builds |
|
12 | 12 | workflow_dispatch: |
13 | 13 |
|
14 | 14 | jobs: |
15 | | - # generate_matrix: |
16 | | - # runs-on: ubuntu-latest |
17 | | - # outputs: |
18 | | - # matrix: "${{ steps.set-matrix.outputs.matrix }}" |
19 | | - # steps: |
20 | | - # - uses: "actions/checkout@v3" |
21 | | - # - id: set-matrix |
22 | | - # run: "python3 .github/scripts/generate_windows_matrix_build.py matrix" |
| 15 | + generate_matrix: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + outputs: |
| 18 | + matrix: ${{ steps.set-matrix.outputs.matrix }} |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v3 |
| 21 | + - id: set-matrix |
| 22 | + run: python3 .github/scripts/generate_windows_matrix_build.py matrix |
23 | 23 | msvc-build: |
24 | | - # needs: generate_matrix |
| 24 | + needs: generate_matrix |
25 | 25 | strategy: |
26 | 26 | fail-fast: true |
27 | | - # TODO: Fix matrix generation? Broke recently due to changes in github actions |
28 | | - # matrix: "${{fromJson(needs.generate_matrix.outputs.matrix)}}" |
29 | | - matrix: |
30 | | - preset: |
31 | | - - win32 |
32 | | - - x64 |
33 | | - - win32_uwp |
34 | | - - x64_uwp |
35 | | - - arm64_uwp |
36 | | - - arm_uwp |
| 27 | + matrix: ${{fromJson(needs.generate_matrix.outputs.matrix)}} |
37 | 28 |
|
38 | | - uses: "./.github/workflows/msvc-build-preset.yml" |
| 29 | + uses: ./.github/workflows/msvc-build-preset.yml |
39 | 30 | with: |
40 | | - preset: "${{ matrix.preset }}" |
| 31 | + preset: ${{ matrix.preset }} |
41 | 32 | artifactName: "loader_${{ matrix.preset }}" |
42 | | - buildType: "RelWithDebInfo" |
43 | 33 |
|
44 | 34 | organize-and-release-artifacts: |
45 | 35 | if: inputs.organizeAndRelease |
46 | 36 | needs: |
47 | 37 | - msvc-build |
48 | 38 | runs-on: ubuntu-latest |
49 | 39 | steps: |
50 | | - - uses: "actions/checkout@v3" |
| 40 | + - uses: actions/checkout@v3 |
51 | 41 |
|
52 | 42 | - name: Retrieve artifacts |
53 | | - uses: "actions/download-artifact@v3" |
| 43 | + uses: actions/download-artifact@v3 |
54 | 44 | with: |
55 | 45 | path: artifacts |
56 | 46 |
|
57 | 47 | - name: Organize artifacts |
58 | | - run: 'python .github/scripts/organize_windows_artifacts.py "${{ github.workspace }}" "${{ github.workspace }}/openxr_loader"' |
| 48 | + run: python .github/scripts/organize_windows_artifacts.py "${{ github.workspace }}" "${{ github.workspace }}/openxr_loader" |
59 | 49 |
|
60 | 50 | - name: Upload combined artifact |
61 | | - uses: "actions/upload-artifact@v3" |
| 51 | + uses: actions/upload-artifact@v3 |
62 | 52 | with: |
63 | 53 | name: openxr_loader_windows |
64 | 54 | path: "${{ github.workspace }}/openxr_loader" |
65 | 55 |
|
66 | 56 | # NuGet stuff now |
67 | 57 |
|
68 | 58 | - name: Setup NuGet |
69 | | - uses: "NuGet/setup-nuget@296fd3ccf8528660c91106efefe2364482f86d6f" |
| 59 | + uses: NuGet/setup-nuget@v1 |
70 | 60 | with: |
71 | 61 | nuget-version: "5.x" |
72 | | - |
73 | 62 | - name: Stage loader and headers for NuGet |
74 | 63 | shell: pwsh |
75 | | - run: '${{ github.workspace }}/.azure-pipelines/nuget/stage_nuget.ps1 "${{ github.workspace }}/openxr_loader" "${{ github.workspace }}/specification/Makefile" "${{ github.workspace }}/openxr_loader_staging"' |
| 64 | + run: ${{ github.workspace }}/.azure-pipelines/nuget/stage_nuget.ps1 "${{ github.workspace }}/openxr_loader" "${{ github.workspace }}/specification/Makefile" "${{ github.workspace }}/openxr_loader_staging" |
76 | 65 |
|
77 | 66 | - name: Pack NuGet package |
78 | | - run: 'nuget pack "${{ github.workspace }}/openxr_loader_staging/OpenXR.Loader.nuspec" -OutputDirectory "${{ github.workspace }}/nuget"' |
| 67 | + run: nuget pack ${{ github.workspace }}/openxr_loader_staging/OpenXR.Loader.nuspec -OutputDirectory ${{ github.workspace }}/nuget |
79 | 68 |
|
80 | 69 | - name: Upload NuGet artifact |
81 | | - uses: "actions/upload-artifact@v3" |
| 70 | + uses: actions/upload-artifact@v3 |
82 | 71 | with: |
83 | 72 | name: NuGet |
84 | 73 | path: "${{ github.workspace }}/nuget" |
0 commit comments