-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (54 loc) · 1.76 KB
/
linux.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
name: Moon4K-Linux
on:
workflow_dispatch:
jobs:
buildLinux:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.4
- name: Restore Previous Cache
id: cache-build-restore
uses: actions/cache/restore@main
with:
path: |
.haxelib/
export/debug/windows/haxe/
export/debug/windows/obj/
key: cache-windows-debug
- name: Set Cache Status
id: cache-status
run: echo "CACHE_HIT=${{ steps.cache-build-restore.outputs.cache-hit }}" >> $GITHUB_ENV
- name: Install Haxelib
run: |
sudo apt-get install libvlc-dev
sudo apt-get install libvlccore-dev
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null --quiet
chmod +x ./setup/setup.sh
sh ./setup/setup.sh
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
run: haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id}}" -debug
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: await require('./actions/cache/clear-cache.js')({github, context}, 'cache-linux-debug');
- name: Save Current Cache
uses: actions/cache@main
with:
key: cache-linux-debug
path: |
.haxelib/
export/debug/linux/haxe/
export/debug/linux/obj/
restore-keys: |
cache-linux-debug
- name: Publish Artifact
uses: actions/[email protected]
with:
name: Moon4K-Linux-Release
path: 'export/debug/linux/bin'