Skip to content

Merge pull request #1 from Mr-Auto/stuff #1

Merge pull request #1 from Mr-Auto/stuff

Merge pull request #1 from Mr-Auto/stuff #1

Workflow file for this run

name: Autobuild
on:
push:
branches: [master]
workflow_dispatch:
jobs:
prettier:
name: Automated prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: creyD/prettier_action@v4.3
with:
prettier_options: --write resources/Spelunky2.json
commit_message: "Automated prettier changes"
build:
name: Autobuild
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.1
- 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 # don't think QT version will change?
- 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 # don't think QT version will change?
- 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/action-automatic-releases@v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "autobuild"
prerelease: false
title: "Autobuild"
files: |
spelunky2-x64dbg-plugin-autobuild.zip