From e71822c42bbe9ce7dbedaf12e7614698ce52be2f Mon Sep 17 00:00:00 2001 From: Quentin Quadrat Date: Fri, 1 Dec 2023 00:05:26 +0100 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 65 ++++++++++++++++++++++++++++++++++++++++ README.md | 14 ++++++--- 2 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7df6672 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,65 @@ +name: CI for ExaequOS +on: + workflow_dispatch: + branches: + - master + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + + ############################################################################# + ### Linux + ############################################################################# + build_linux: + name: Build on Linux + runs-on: ubuntu-20.04 + steps: + - name: Checkout ExaequOS + uses: actions/checkout@v3 + with: + submodules: true + - name: Install system packages + run: | + sudo apt-get update + python3 -m pip install -r requirements.txt + - name: Compile ExaequOS + run: | + python3 build.py + - name: Check build + run: | + cd ExaequOS + ls ExaequOS libcef.so + + ############################################################################# + ### Windows + ############################################################################# + build_windows: + name: Build on Windows + runs-on: windows-2022 + steps: + # Add path for finding cl.exe + # FIXME: I dunno why Godot editor and godot-cpp can find cl.exe while our + # godot native modules cannot find it without this extra path + - uses: ilammy/msvc-dev-cmd@v1.10.0 + + - name: Checkout ExaequOS + uses: actions/checkout@v3 + with: + submodules: true + - name: Install system packages + shell: powershell + run: | + python3 -m pip install -r requirements.txt + - name: Compile ExaequOS + shell: powershell + run: | + python3 build.py + - name: Check build + run: | + Test-Path -Path \a\exa-application\ExaequOS\ExaequOS.exe + Test-Path -Path \a\exa-application\ExaequOS\libcef.dll diff --git a/README.md b/README.md index 848d2c9..2272204 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,22 @@ -# Exa-Application +# Browser application rendering ExaequOS -Python3 script for compiling application for https://github.com/exaequos for Linux, Windows and Mac OSX. -The application is [CEF](https://bitbucket.org/chromiumembedded/cef/wiki/Home) based. +Python3 script compiling the browser application rendering the online version of +[ExaequOS](https://github.com/exaequos). ## Compilation +Compile for Linux, Windows and Mac OSX. + ``` python3 -m pip install -r requirements.txt python3 build.py ``` -The `ExaequOS/` folder with all its artfacts shall have been created. To start the `ExaequOS` application +The `ExaequOS/` folder with all its artfacts shall have been created. + +## Running + +To start the `ExaequOS` application: ``` cd ExaequOS