From 69f6871d79815105a050d723ed417ba9bc0a90f3 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sat, 7 Jan 2023 17:38:45 +0100 Subject: [PATCH] mac os --- .github/workflows/linux.yml | 3 ++- .github/workflows/macos.yml | 45 +++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 89578944..e804c776 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,10 +1,11 @@ -name: Compile on Linux +name: Linux Build on: pull_request: push: jobs: build: + name: Linux Build runs-on: ubuntu-latest steps: - name: Pulling the new commit diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 00000000..4982a995 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,45 @@ + +name: Mac OS Build +on: + pull_request: + push: +jobs: + build: + name: Mac OS Build + runs-on: ubuntu-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-mac + path: | + ~/.haxelib/ + ~/export/release/mac/haxe/ + ~/export/release/mac/obj/ + - name: Setting up Haxelib + run: | + 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 mac + - name: Artifact upload (entire build) + uses: actions/upload-artifact@v2 + with: + name: Codename Engine + path: export/release/mac/bin + - name: Artifact upload (executable) + uses: actions/upload-artifact@v2 + with: + name: Update-Mac + path: export/release/mac/bin/CodenameEngine \ No newline at end of file