-
Notifications
You must be signed in to change notification settings - Fork 80
60 lines (50 loc) · 1.72 KB
/
build-alpha-patch-unsigned.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
name: Alpha Patches (Unsigned)
on:
workflow_call:
outputs:
artifact-id:
description: "The ID of the uploaded artifact"
value: ${{ jobs.build-alpha-patch-unsigned.outputs.artifact-id }}
zip-name:
description: "The name of the ZIP file without extension"
value: ${{ jobs.build-alpha-patch-unsigned.outputs.zip-name }}
workflow_dispatch:
jobs:
build-alpha-patch-unsigned:
name: "Build Alpha Patch (Unsigned)"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dkfans/setup-cpp@master
- name: Update system
run: |
set -eux
sudo apt update
sudo apt install -y build-essential g++-mingw-w64-i686 libpng16-16t64 7zip
- name: Build gfx
run: |
set -eux
BUILD_NUMBER=$(git rev-list --count HEAD)
PACKAGE_SUFFIX=Alpha
make BUILD_NUMBER=$BUILD_NUMBER PACKAGE_SUFFIX=$PACKAGE_SUFFIX pkg-enginegfx
- name: Build
run: |
set -eux
BUILD_NUMBER=$(git rev-list --count HEAD)
PACKAGE_SUFFIX=Alpha
make BUILD_NUMBER=$BUILD_NUMBER PACKAGE_SUFFIX=$PACKAGE_SUFFIX heavylog DEBUG=1 -k
make BUILD_NUMBER=$BUILD_NUMBER PACKAGE_SUFFIX=$PACKAGE_SUFFIX standard
make BUILD_NUMBER=$BUILD_NUMBER PACKAGE_SUFFIX=$PACKAGE_SUFFIX package
echo "ZIP_NAME=$(basename -s .7z pkg/keeperfx*.7z)" >> $GITHUB_ENV
rm pkg/keeperfx*.7z
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.ZIP_NAME }}
path: pkg/**
outputs:
artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }}
zip-name: ${{ env.ZIP_NAME }}