This repository has been archived by the owner on Aug 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (59 loc) · 2.01 KB
/
main.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
68
name: Build Source Viewer
on:
push:
branches: [ source ]
schedule:
- cron: 0 0,12 * * *
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
sudo apt update
sudo apt install -y libcurl4-openssl-dev llvm-11 llvm-11-dev clang-11 libclang-11-dev ninja-build
sudo apt remove -y llvm-8 llvm-9 llvm-10
git submodule update --init
cd woboq_codebrowser
mkdir build; cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --parallel $(nproc)
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: QtCache-5.15
- name: Installing Qt
uses: jurplel/install-qt-action@v2
with:
version: 5.15.1
mirror: "http://mirrors.ocf.berkeley.edu/qt/"
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Cache Qt6
id: cache-qt6
uses: actions/cache@v1
with:
path: ../Qt6
key: QtCache-6.1
- name: Installing Qt
uses: jurplel/install-qt-action@v2
with:
version: 6.1.0
mirror: "http://mirrors.ocf.berkeley.edu/qt/"
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- run: |
sudo apt install -y libgl-dev libx11-dev libxkbcommon-x11-dev libxcb-image0-dev libxcb-icccm4-dev libssl-dev libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0
sudo apt install -y libprotobuf-dev protobuf-compiler protobuf-c-compiler libgrpc++-dev protobuf-compiler-grpc
- run: |
QV2RAY_BUILD_BRANCH=dev-v3 ./export.sh
QV2RAY_BUILD_BRANCH=dev ./export.sh
QV2RAY_BUILD_BRANCH=version-v2 ./export.sh
QV2RAY_BUILD_BRANCH=master ./export.sh
- uses: crazy-max/[email protected]
with:
target_branch: master
keep_history: false
build_dir: ./doc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}