-
Notifications
You must be signed in to change notification settings - Fork 27
67 lines (55 loc) · 2.19 KB
/
builds-ubuntu.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
58
59
60
61
62
63
64
65
66
67
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Ubuntu 22 KnobKraft Orm
on: [push]
jobs:
build-ubuntu-22:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository with tags
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Additionally checkout submodules - don't use checkout action as it will overwrite refs
run: |
git submodule update --recursive --init --depth 1
- name: Install dependencies from apt-get
run: sudo apt-get -y update && sudo apt-get install -y libcurl4-openssl-dev pkg-config libtbb-dev libasound2-dev libboost-dev libgtk-3-dev libwebkit2gtk-4.0-dev libglew-dev libjack-dev libicu-dev
- name: Select proper Python version
uses: actions/setup-python@v2
with:
python-version: '3.12'
architecture: 'x64'
- name: CMake configure
env: # We get the SENTRY DSN from the repository's secret store
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
shell: bash
run: |
cmake -S . -B builds -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=off -DPYTHON_VERSION_TO_EMBED=3.12 -DSENTRY_CRASH_REPORTING=ON -DSENTRY_DSN=$SENTRY_DSN
- name: CMake build
run: cmake --build builds --target package -- -j4
- name: Upload artifact for testing outside of a release
uses: actions/upload-artifact@v4
with:
name: ubuntu22-release
path: |
builds/KnobKraft_Orm-${{env.ORM_VERSION}}-Linux.tar.gz
- name: Publish release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: builds/KnobKraft_Orm-${{env.ORM_VERSION}}-Linux.tar.gz
tags: true
draft: false
- name: Setup Sentry CLI
uses: mathieu-bour/setup-sentry-cli@1.2.0
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
organization: knobkraft
project: knobkraft
- name: Upload PDB files to Sentry for stack unwinding when this is a tagged build
if: startsWith(github.ref, 'refs/tags/')
working-directory: builds
run: |
sentry-cli upload-dif . --log-level=debug