This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (51 loc) · 1.82 KB
/
release-windows.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
54
55
56
57
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Upload Asset - Windows
jobs:
build:
name: Upload Asset - Windows
runs-on: windows-latest
strategy:
matrix:
configuration: ['release'] #, 'debug']
platform: ['x64', 'win32', 'aarch64']
steps:
- uses: actions/[email protected]
with:
submodules: 'true'
fetch-depth: '0'
# Build from the tag that triggered the build
ref: ${{github.ref_name}}
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1
- name: premake
run:
.\premake.bat vs2019 --deps=true --no-progress=true
- name: msbuild
run:
MSBuild.exe slang-glslang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -property:WindowsTargetPlatformVersion=10.0.19041.0
- name: archive
id: archive
run: |
echo "achiving files..."
$tagName = & git describe --tags
$glslangVersion = $tagName.TrimStart("v")
$binArchive = "slang-glslang-$glslangVersion-windows-${{matrix.platform}}-${{matrix.configuration}}.zip"
echo "name=BINARY_ARCHIVE::$binArchive"
echo "::set-output name=BINARY_ARCHIVE::$binArchive"
7z a "$binArchive" README.md
7z a "$binArchive" LICENSE
7z a "$binArchive" bin\*\*\*.dll
- name: Check outputs
shell: pwsh
run: echo "binary is ${{ steps.archive.outputs.BINARY_ARCHIVE }}"
- name: UploadBinary
uses: softprops/action-gh-release@v1
with:
files: |
${{ steps.archive.outputs.BINARY_ARCHIVE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}