forked from storm-devs/storm-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (57 loc) · 2.07 KB
/
release_beta.yml
File metadata and controls
59 lines (57 loc) · 2.07 KB
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
58
59
name: Prepare BETA release
on:
push:
tags:
- "beta[0-9]+"
jobs:
build-windows:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
configuration: [msvc-debug, msvc-release]
enable_steam: [false]
include:
- enable_steam: true
configuration: msvc-release
name: 'build-windows [${{ matrix.configuration }}, steam: ${{ matrix.enable_steam }}]'
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: ilammy/msvc-dev-cmd@v1
- name: Install Conan
run: pip install conan
- name: Configure with CMakeSettings.json and build
uses: lukka/run-cmake@v3
with:
cmakeListsOrSettingsJson: CMakeSettingsJson
cmakeSettingsJsonPath: '${{ github.workspace }}/CMakeSettings.json'
useVcpkgToolchainFile: false
buildDirectory: '${{ github.workspace }}/build'
configurationRegexFilter: '${{ matrix.configuration }}'
cmakeAppendedArgs: '-DSTORM_ENABLE_STEAM=${{ matrix.enable_steam }} -DSTORM_ENABLE_CRASH_REPORTS=ON'
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: storm-engine.${{ matrix.configuration }}-steam-${{ matrix.enable_steam }}
path: build\${{ matrix.configuration }}\bin
- name: Archive release
uses: papeloto/action-zip@v1
with:
files: build\${{ matrix.configuration }}\bin
recursive: true
dest: storm-engine.${{ matrix.configuration }}-steam-${{ matrix.enable_steam }}.zip
- name: Publish release
uses: softprops/action-gh-release@v1
with:
draft: true
files: storm-engine.${{ matrix.configuration }}-steam-${{ matrix.enable_steam }}.zip
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Upload debug symbols
run: |
npm install @sentry/cli
./node_modules/.bin/sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} upload-dif -o storm-devs -p storm-engine -t pe -t pdb "build\${{ matrix.configuration }}\bin"