-
Notifications
You must be signed in to change notification settings - Fork 78
44 lines (39 loc) · 1.17 KB
/
Push.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
name: Alpha builds
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: Trass3r/setup-cpp@master
- name: Update system
run: |
set -eux
sudo apt update
sudo apt install -y build-essential g++-mingw-w64-i686 libpng16-16t64
- 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
- uses: actions/upload-artifact@v4
with:
name: ${{ env.ZIP_NAME }}
path: pkg/**