From 121fb583cc46bf0647590c8d0d64b6c8fd6ba081 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Fri, 10 Nov 2023 13:44:47 -0800 Subject: [PATCH] actions: build samples on more targets, and try to fix openfl-samples error --- .github/workflows/main.yml | 53 +++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3cf15d40..f1822523 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -91,4 +91,55 @@ jobs: - name: Build Away3D samples run: | lime build Particles neko -release -verbose -nocolor - lime build Tweening3D neko -release -verbose -nocolor \ No newline at end of file + lime build Tweening3D neko -release -verbose -nocolor + + samples: + needs: package-haxelib + runs-on: ubuntu-latest + steps: + + - uses: krdlab/setup-haxe@v1 + with: + haxe-version: 4.2.5 + + - name: Set HAXEPATH + run: | + echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV + + - name: Install Haxe dependencies + run: | + haxelib install lime --quiet + haxelib install openfl --quiet + haxelib install actuate --quiet + haxelib install openfl-samples --quiet + haxelib git away3d-samples https://github.com/openfl/away3d-samples --quiet + + - uses: actions/download-artifact@v3 + with: + name: away3d-haxelib + path: away3d-haxelib + + - name: Prepare away3d + run: | + haxelib dev away3d away3d-haxelib + + - name: Create Away3D samples + run: | + haxelib run openfl create away3d:Particles samples/basic/Particles -verbose -nocolor + haxelib run openfl create away3d:Tweening3D samples/basic/Tweening3D -verbose -nocolor + + - name: Build Particles sample + working-directory: samples/basic/Particles + run: | + haxelib run lime build html5 + haxelib run lime build neko + haxelib run lime build hl + haxelib run lime build flash + + - name: Build Tweening3D sample + working-directory: samples/basic/Tweening3D + run: | + haxelib run lime build html5 + haxelib run lime build neko + haxelib run lime build hl + haxelib run lime build flash \ No newline at end of file