-
Notifications
You must be signed in to change notification settings - Fork 8
74 lines (66 loc) · 2.2 KB
/
dev.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
name: Unreal Development Build
on:
push:
branches:
- main
paths-ignore:
- README.md
tags:
- "v*.*.*"
pull_request:
paths-ignore:
- README.md
jobs:
simple:
runs-on: ubuntu-22.04
steps:
- name: Checkout play-uneral-demo
uses: actions/checkout@v3
- name: Setup environment
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf /usr/local/lib/android
- name: Checkout play-unreal-plugin repo
uses: actions/checkout@v3
with:
repository: cronos-labs/play-unreal-plugin
path: simple/Plugins/play-unreal-plugin
ref: main
- name: Build play-unreal-plugin repo
run: |
cd simple/Plugins/play-unreal-plugin
mv ./Source/ThirdParty/PlayCppSdkLibrary/PlayCppSdkLibrary.Build.cs.legacy ./Source/ThirdParty/PlayCppSdkLibrary/PlayCppSdkLibrary.Build.cs
TARGET=4.27 make
python change_version.py 4.27.0
sudo chmod 777 -R $GITHUB_WORKSPACE
- uses: addnab/docker-run-action@v3
with:
registry: ghcr.io
username: ${{ secrets.USER }}
password: ${{ secrets.PAT }}
image: ghcr.io/epicgames/unreal-engine:dev-slim-4.27.2
options: -v ${{ github.workspace }}:/home/ue4/play-unreal-demo -e HOME=/home/ue4
run: |
cd ~/play-unreal-demo/simple
make
- name: Package
run: |
FILENAME="CronosPlaySimpleDemoLinuxNoEditor.zip"
cd simple/archive/LinuxNoEditor/ && zip -r ../../../${FILENAME} .
cd ../../..
sha256sum ${FILENAME} > "checksums-${FILENAME}.txt"
echo "demo_binary_file=${FILENAME}" >> $GITHUB_ENV
echo "demo_checksum_file=checksums-${FILENAME}.txt" >> $GITHUB_ENV
- name: Upload binary file and checksum file to Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
with:
draft: true
files: |
${{ env.demo_binary_file }}
${{ env.demo_checksum_file }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}