Skip to content

Commit 853a250

Browse files
authored
Merge pull request #20 from Stefan2008Git/main
Request: Add Linux support in GitHub actions
2 parents ed7d4a7 + 4b47430 commit 853a250

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/linux.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Linux Build
2+
on:
3+
push:
4+
workflow_dispatch:
5+
jobs:
6+
build:
7+
name: Linux Build
8+
permissions: write-all
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Retrieving latest commit.
12+
uses: actions/checkout@v4
13+
- name: Setting up Haxe
14+
uses: krdlab/setup-haxe@v1
15+
with:
16+
haxe-version: 5.0.0-preview.1 # haxe version i used cuz yes
17+
- name: Restore existing build cache for faster compilation
18+
uses: actions/cache@v3
19+
with:
20+
key: cache-build-linux
21+
path: |
22+
.haxelib/
23+
export/linux/haxe/
24+
export/linux/obj/
25+
restore-keys: |
26+
cache-build-linux
27+
- name: Installing / Updating libraries
28+
run: |
29+
haxe -cp cli --run Lib
30+
haxelib remove hxcpp
31+
haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp.git
32+
- name: Rebuild Hxcpp
33+
run: |
34+
haxelib run lime rebuild hxcpp
35+
- name: Building the game
36+
run: |
37+
haxelib run lime build linux
38+
- name: Uploading artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: LineTapper
42+
path: export/linux/bin
43+
- name: Uploading new cache
44+
uses: actions/cache@v3
45+
with:
46+
key: cache-build-linux
47+
path: |
48+
.haxelib/
49+
export/linux/haxe/
50+
export/linux/obj/
51+
restore-keys: |
52+
cache-build-linux

0 commit comments

Comments
 (0)