-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (56 loc) · 1.66 KB
/
linux_release.yml
File metadata and controls
67 lines (56 loc) · 1.66 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
60
61
62
63
64
65
66
67
name: Linux Release
on:
push:
branches:
- 'main'
- 'continuous-integration'
- 'cross-platform'
tags:
- 'v*'
pull_request:
branches:
- 'main'
- 'continuous-integration'
defaults:
run:
shell: bash
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
ARTIFACT: smpt_linux.zip
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
dir: ${{ runner.temp }}
tools: 'tools_qtcreator,qt.tools.qtcreator'
- name: Create build directory
run: mkdir ${{ env.SOURCE_DIR }}/build
- name: Build
working-directory: ${{ env.SOURCE_DIR }}/build
run: |
qmake -r "CONFIG+=myRelease smpt_all linux_x86_amd64_static" ${{ env.SOURCE_DIR }}/ScienceMode.pro
make
- name: Test
working-directory: ${{ env.SOURCE_DIR }}/build
run: ${{ env.SOURCE_DIR }}/build/ScienceMode_Library_Test/smptlus_test
- name: Zip build
working-directory: ${{ runner.temp }}
run: |
7z a smpt_linux.zip ${{ env.SOURCE_DIR }}/build/ScienceMode_Library/release/* -r
- name: Save build artifact
uses: actions/upload-artifact@master
with:
name: ${{ env.ARTIFACT }}
path: ${{ runner.temp }}/${{ env.ARTIFACT }}