-
Notifications
You must be signed in to change notification settings - Fork 78
37 lines (32 loc) · 1.1 KB
/
PR.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
name: Test Prototypes
on:
pull_request:
types: [ready_for_review, review_requested]
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
run: |
set -eux
BUILD_NUMBER=$(git rev-list --count origin/master)
GITHUB_SHA=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.head.sha)
PACKAGE_SUFFIX=Prototype_$(git rev-parse --short=7 "$GITHUB_SHA")
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/**