forked from zappatic/Spelunky2X64DbgPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (61 loc) · 1.92 KB
/
autobuild.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: Autobuild
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
name: Automated prettier
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: creyD/[email protected]
with:
prettier_options: --write resources/Spelunky2.json
commit_message: "Automated prettier changes"
notify:
needs: build
name: Autobuild
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Get QT From Cache
id: cache-qt
uses: actions/cache/restore@v3
with:
path: C:\Qt
key: ${{ runner.os }}-Qt563
- name: Download Qt if Needed
if: steps.cache-qt.outputs.cache-hit != 'true'
run: |
mkdir C:\Qt
python resources\qt_download_helper.py
cd C:\Qt
7z x qt563.7z
- name: Save Qt to cache
if: steps.cache-qt.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: C:\Qt
key: ${{ runner.os }}-Qt563
- name: Build
run: |
mkdir C:\spelunky2-x64dbg-plugin-autobuild
mkdir build
cd build
cmake .. -DX64DBG_PLUGINS_ROOT=C:\spelunky2-x64dbg-plugin-autobuild -DQt5ROOT=C:\Qt\5.6.3\msvc2013_64\
cmake --build . --config Release --target ALL_BUILD
- name: Pack build files
run: 7z a -tzip spelunky2-x64dbg-plugin-autobuild.zip C:\spelunky2-x64dbg-plugin-autobuild\
- name: Create release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "autobuild"
prerelease: false
title: "Autobuild"
files: |
spelunky2-x64dbg-plugin-autobuild.zip