Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammie committed Dec 24, 2023
1 parent c7a6cda commit 6d1f39e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/release_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Prepare BETA release
on:
push:
tags:
- "beta[0-9]+"
- "pa[0-9]+\.[0-9]+\.[0-9]+(-beta\.[0-9]+)?"

jobs:
build-windows:
Expand All @@ -13,35 +13,35 @@ jobs:
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 }}]'
# include:
# - enable_steam: true
# configuration: msvc-release
name: 'Windows [${{ matrix.configuration }}, steam: ${{ matrix.enable_steam }}]'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
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'
run: pip install conan==1.62.0
- uses: lukka/get-cmake@latest
- name: Configure CMake w/ Conan
run: |
conan profile new default --detect
conan profile update conf.tools.system.package_manager:mode=install default
conan profile update conf.tools.system.package_manager:sudo=True default
cmake --preset=default
- name: Build
run: cmake --build --preset=${{ matrix.configuration }} -DSTORM_ENABLE_STEAM=${{ matrix.enable_steam }} -DSTORM_ENABLE_CRASH_REPORTS=ON
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: storm-engine.${{ matrix.configuration }}-steam-${{ matrix.enable_steam }}
path: build\${{ matrix.configuration }}\bin
path: build/default/${{ matrix.configuration }}
- name: Archive release
uses: papeloto/action-zip@v1
with:
files: build\${{ matrix.configuration }}\bin
files: build/default/${{ matrix.configuration }}
recursive: true
dest: storm-engine.${{ matrix.configuration }}-steam-${{ matrix.enable_steam }}.zip
- name: Publish release
Expand All @@ -52,8 +52,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '16'
- name: Upload debug symbols
run: |
npm install @sentry/cli
./node_modules/.bin/sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} upload-dif -o piratesahoy -p storm-engine -t pe -t pdb "build\${{ matrix.configuration }}\bin"
./node_modules/.bin/sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} debug-files upload -o piratesahoy -p storm-engine -t pe -t pdb "build/default/${{ matrix.configuration }}"

0 comments on commit 6d1f39e

Please sign in to comment.