forked from gta-chaos-mod/Trilogy-ASI-Script
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.09 KB
/
main.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
name: CMake
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: ilammy/[email protected]
with:
arch: x86
- name: Cache bin
id: cache-bin
uses: actions/cache@v3
with:
path: bin
key: ${{ runner.os }}-bin
- name: Create bin folder
if: steps.cache-bin.outputs.cache-hit != 'true'
run: |
mkdir bin
cd bin
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ../
mkdir output_SA
- name: Compile
run: |
cd bin
ninja
cp TrilogyChaosMod.SA.asi output_SA/TrilogyChaosMod.SA.asi
- name: Upload SA
uses: actions/upload-artifact@v1
with:
name: "TrilogyChaosMod.SA"
path: bin/output_SA
- name: Zip
- uses: vimtor/[email protected]
with:
files: bin/output_SA resources/
dest: SA-CHAOS.zip
- name: Upload Release
uses: ncipollo/[email protected]
with:
artifacts: "SA-CHAOS.zip"
token: ${{ secrets.GITHUB_TOKEN }}