This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
78 lines (66 loc) · 2.17 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
74
75
76
77
78
name: Build OpenHack
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- name: Standalone
os: windows-latest
- name: Geode
os: windows-latest
name: OpenHack Build
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Standalone
if: matrix.config.name == 'Standalone'
uses: ./.github/workflows/ci-standalone.yml
- name: Geode
if: matrix.config.name == 'Geode'
uses: ./.github/workflows/ci-geode.yml
package:
name: Create nigtly release
runs-on: ubuntu-latest
needs: ['build']
steps:
- uses: actions/download-artifact@v3
with:
name: OpenHack-Standalone
path: ${{ github.workspace }}/bin
- uses: actions/download-artifact@v3
with:
name: OpenHack-Geode
path: ${{ github.workspace }}/bin
- name: Prepare standalone zip
run: |
mkdir -p ${{ github.workspace }}/bin/standalone
cp -r ${{ github.workspace }}/bin/openhack ${{ github.workspace }}/bin/standalone/openhack
cp ${{ github.workspace }}/bin/xinput9_1_0.dll ${{ github.workspace }}/bin/standalone/xinput9_1_0.dll
- name: Package standalone
run: |
7z a -tzip ${{ github.workspace }}/bin/OpenHack-Nightly.zip ${{ github.workspace }}/bin/standalone
- name: Create nightly release
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: 'Development Release'
body: |
This is a nightly build of OpenHack for commit ${{ github.sha }}.\nYou can use this build to test the latest features and changes.
files: |
${{ github.workspace }}/bin/OpenHack-Nightly.zip
${{ github.workspace }}/bin/prevter.openhack.geode
${{ github.workspace }}/bin/prevter.openhack.pdb
${{ github.workspace }}/bin/xinput9_1_0.dll