Browse Source

[CI] add build samples test and fix case sensitive res (#1278)

Yuxiao Mao 3 tháng trước cách đây
mục cha
commit
e0c614f5e3
3 tập tin đã thay đổi với 32 bổ sung0 xóa
  1. 32 0
      .github/workflows/main.yml
  2. 0 0
      samples/fxView_res/hideEffect.fx
  3. 0 0
      samples/fxView_res/ray.jpg

+ 32 - 0
.github/workflows/main.yml

@@ -0,0 +1,32 @@
+name: CI
+
+on:
+  push:
+  pull_request:
+  workflow_dispatch:
+
+jobs:
+  build-samples:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - uses: krdlab/setup-haxe@v1
+      with:
+        haxe-version: 4.3.6
+    - name: Print Haxe version
+      run: |
+        haxe --version
+    - name: Install haxelib deps
+      run: |
+        haxelib git format https://github.com/HaxeFoundation/format
+        haxelib git hxbit https://github.com/ncannasse/hxbit
+        haxelib git hscript https://github.com/HaxeFoundation/hscript
+        haxelib git domkit https://github.com/HeapsIO/domkit
+        haxelib git hide https://github.com/HeapsIO/hide
+        haxelib git hlsdl https://github.com/HaxeFoundation/hashlink master libs/sdl
+        haxelib dev heaps .
+    - name: Build samples
+      run: |
+        cd samples
+        haxe all.hxml
+        cd ..

+ 0 - 0
samples/fxview_res/hideEffect.fx → samples/fxView_res/hideEffect.fx


+ 0 - 0
samples/fxview_res/ray.jpg → samples/fxView_res/ray.jpg