-
Notifications
You must be signed in to change notification settings - Fork 7
73 lines (62 loc) · 1.97 KB
/
build.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
name: QvPlugin Build Action Qt6
on:
push:
release:
types: [prereleased]
jobs:
build:
runs-on: windows-latest
steps:
- name: Get the version
id: get_version
shell: bash
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Get Plugin Name
id: get_name
shell: bash
run: echo ::set-output name=NAME::QvPlugin-WinNetFilter
- name: Checking out sources
uses: actions/checkout@master
with:
submodules: recursive
- name: Install Python 3.7 version
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Install MSVC compiler
uses: ilammy/msvc-dev-cmd@v1
with:
toolset: 14.2
arch: x64
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: 6.2.0
arch: win64_msvc2019_64
aqtversion: ==1.2.2
- name: Install Vulkan SDK
uses: humbletim/[email protected]
- name: Build
shell: bash
env:
CC: cl.exe
CXX: cl.exe
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -A x64
cmake --build . --parallel $(nproc) --config Release
- name: Uploading artifact
uses: actions/upload-artifact@master
with:
name: ${{ steps.get_name.outputs.NAME }}-${{ github.sha }}.Windows.dll
path: build/Release/${{ steps.get_name.outputs.NAME }}.dll
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
if: github.event_name == 'release'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/Release/${{ steps.get_name.outputs.NAME }}.dll
asset_name: ${{ steps.get_name.outputs.NAME }}.${{ steps.get_version.outputs.VERSION }}.Windows.Qt6.dll
tag: ${{ github.ref }}
overwrite: true