-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (54 loc) · 2.17 KB
/
release.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
name: Release
on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Update apt-get database
run: |
sudo apt-get update -y
sudo apt-get upgrade -y
./scripts/enable-kitware-repo
- name: Install build dependencies
run: sudo apt-get install -y clang ninja-build git cmake llvm pkg-config
- name: Build vulkan
run: ./scripts/build-vulkan
- name: Install project dependencies
run: |
sudo apt-get install -y libboost-all-dev libspdlog-dev
- name: Build ffmpeg
run: ./scripts/build-ffmpeg
- name: Download Qt source
env:
QT_INSTALLER_JWT_TOKEN: ${{ secrets.QT_INSTALLER_JWT_TOKEN }}
run: |
mkdir $HOME/Qt
./scripts/download-qt --root $HOME/Qt qt.qt6.661.src
- name: Build Qt from source with static linking
env:
CC: gcc
CXX: g++
CXXFLAGS: -Wall
run: |
sudo apt-get install -y '^libxcb.*-dev' build-essential libgl1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev libpulse-dev libqt5x11extras5 libssl-dev libssl1.0 libwayland-dev libwayland-egl1-mesa libwayland-server0 libx11-xcb-dev libxi-dev libxkbcommon-dev libxkbcommon-dev libxkbcommon-x11-dev libxrender-dev openssl libva-dev libva-drm2 libva-wayland2 libva-x11-2
src=$HOME/Qt/6.6.1/Src
$src/configure -release -static -prefix $PWD/3rdparty/Qt -submodules qtbase,qtmultimedia,qtwayland -no-pch -no-gstreamer -- -S $src -B $src/build -Wdev -DFFMPEG_DIR=$PWD/3rdparty/ffmpeg
cmake --build $src/build
cmake --install $src/build
- name: Build project
run: |
./scripts/configure -- -DBUILD_TESTING=ON
cmake --build ./build --target package
- name: Run tests
run: ctest --test-dir ./build --verbose
- name: Publish
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
files: ./build/*.tar.gz