-
Notifications
You must be signed in to change notification settings - Fork 8
122 lines (109 loc) · 3.08 KB
/
ci.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Copyright 2023 The Tongsuo Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://github.com/Tongsuo-Project/tsapp/blob/main/LICENSE
name: GitHub CI
on: [pull_request, push]
permissions:
contents: read
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- name: install dependency
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-format-15
- uses: actions/checkout@v3
- name: check format
run: |
clang-format-15 --Werror --dry-run *.cpp *.h
unix:
strategy:
fail-fast: false
matrix:
os: [
macos-11,
macos-12,
macos-13,
macos-13-xlarge,
macos-14-large,
macos-14-xlarge,
ubuntu-18.04,
ubuntu-20.04,
ubuntu-22.04,
]
runs-on: ${{ matrix.os }}
steps:
- name: checkout tongsuo
uses: actions/checkout@v3
with:
repository: Tongsuo-Project/Tongsuo
path: Tongsuo
- name: build Tongsuo
working-directory: ./Tongsuo
run: |
./config --banner=Configured --prefix=${RUNNER_TEMP}/tongsuo --libdir=${RUNNER_TEMP}/tongsuo/lib enable-ntls
make -s -j4
make install
- uses: actions/checkout@v3
- name: install QT
uses: jurplel/install-qt-action@v3
with:
version: 6.2.4
- name: build tsapp
run: |
TONGSUO_HOME=${RUNNER_TEMP}/tongsuo PREFIX=${RUNNER_TEMP}/tsapp qmake
make -s -j4
make install
windows:
strategy:
fail-fast: false
matrix:
os:
- windows-2019
- windows-2022
runs-on: ${{ matrix.os }}
steps:
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: win64
- uses: ilammy/setup-nasm@v1
with:
platform: win64
- uses: shogo82148/actions-setup-perl@v1
- name: checkout tongsuo
uses: actions/checkout@v3
with:
repository: Tongsuo-Project/Tongsuo
path: Tongsuo
- name: build Tongsuo
shell: cmd
working-directory: ./Tongsuo
run: |
mkdir _build
pushd _build
perl ..\Configure no-makedepend no-shared enable-ntls VC-WIN64A --prefix=%RUNNER_TEMP%\tongsuo --libdir=%RUNNER_TEMP%\tongsuo\lib
nmake /S
nmake install_sw
popd
- uses: actions/checkout@v3
- name: install QT
uses: jurplel/install-qt-action@v3
with:
version: 6.2.4
- name: build tsapp
shell: cmd
run: |
set TONGSUO_HOME=%RUNNER_TEMP%\tongsuo
set PREFIX=%RUNNER_TEMP%\tsapp
qmake
nmake /S
nmake install
- name: debug
if: ${{ failure() }}
shell: cmd
run: |
type Makefile.Release