From 6a41351d4d0d8493b1ad78881738d454d03c7186 Mon Sep 17 00:00:00 2001 From: Quentin Quadrat Date: Tue, 5 Nov 2024 00:10:33 +0100 Subject: [PATCH] CI: add MacOS target Commit made in blind --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddd67d1..a26074e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,46 @@ on: jobs: + ############################################################################# + ### MacOS + ############################################################################# + build_macos: + name: Build on MacOS + runs-on: macos-14 + steps: + - name: Checkout GDCEF + uses: actions/checkout@v3 + with: + ref: godot-4.x + submodules: true + - name: Install system packages + uses: getsentry/action-setup-venv@v2.1.0 + id: venv + with: + python-version: 3.10.7 + cache-dependency-path: addons/gdcef/requirements.txt + install-cmd: pip install -r addons/gdcef/requirements.txt + - name: Compile GDCEF + run: | + cd addons/gdcef + python3 build.py + - name: Check build + run: | + ls cef_artifacts/libgdcef.dylib + tar -czvf gdcef-artifacts-godot_4-macos_x86_64.tar.gz cef_artifacts + - name: Do release + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + uses: ncipollo/release-action@v1 + with: + artifacts: "gdcef-artifacts-godot_4-macos_x86_64.tar.gz" + ############################################################################# ### Linux ############################################################################# build_linux: name: Build on Linux runs-on: ubuntu-20.04 + needs: build_macos steps: - name: Checkout GDCEF uses: actions/checkout@v3