From cf81b824e704d7f9b1b00377a936843c1539b5a9 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sat, 7 Jan 2023 19:28:30 +0100 Subject: [PATCH] why are ppl so talented in the codename gc --- .github/workflows/windows.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 00000000..ccdb63e1 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,47 @@ + +name: Windows Build +on: + pull_request: + push: +jobs: + build: + name: Windows Build + runs-on: windows-latest + steps: + - name: Pulling the new commit + uses: actions/checkout@v2 + - name: Setting up Haxe + uses: krdlab/setup-haxe@v1 + with: + haxe-version: 4.2.5 + - name: Cache Haxelibs and build + uses: actions/cache@v3 + with: + # not caching the bin folder to prevent asset duplication and stuff like that + key: cache-build-windows + path: | + .haxelib/ + export/release/windows/haxe/ + export/release/windows/obj/ + restore-keys: | + cache-build-windows + - name: Setting up Haxelib + run: | + if not exist ".haxelib\" mkdir ".haxelib" + haxelib setup ".haxelib" + - name: Installing libraries + run: | + haxe -cp ./update -D analyzer-optimize -main Update --interp + - name: Building the game + run: | + haxelib run lime build windows + - name: Artifact upload (entire build) + uses: actions/upload-artifact@v2 + with: + name: Codename Engine + path: export/release/windows/bin + - name: Artifact upload (executable) + uses: actions/upload-artifact@v2 + with: + name: Update-Windows + path: export/release/windows/bin/CodenameEngine.exe \ No newline at end of file