-
Notifications
You must be signed in to change notification settings - Fork 24
53 lines (47 loc) · 1.31 KB
/
windows-cts-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 2021-2023, Collabora, Ltd.
# SPDX-License-Identifier: CC0-1.0
name: Build Windows release artifacts
on:
release:
types: [published]
workflow_dispatch:
jobs:
msvc-build:
strategy:
fail-fast: true
matrix:
preset:
- cts-win32
- cts-x64
uses: "./.github/workflows/msvc-build-preset.yml"
with:
preset: "${{ matrix.preset }}"
artifactName: "openxr-${{ matrix.preset }}"
buildType: "RelWithDebInfo"
subdir: "install/conformance"
publish-win:
if: startsWith(github.ref, 'refs/tags/')
needs:
- msvc-build
env:
TAGNAME: "${{ github.event.release.tag_name }}"
runs-on: ubuntu-latest
steps:
- name: Retrieve Win32 build
uses: actions/download-artifact@v3
with:
name: openxr-cts-win32
path: openxr-cts-win32
- name: Compress Win32
run: '7za a "$TAGNAME-win32.zip" openxr-cts-win32'
- name: Retrieve x64 build
uses: actions/download-artifact@v3
with:
name: openxr-cts-x64
path: openxr-cts-x64
- name: Compress x64
run: '7za a "$TAGNAME-x64.zip" openxr-cts-x64'
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "${{ github.event.release.tag_name }}-*.zip"