From 6a7417194a177ebe8586a001d81df0d340f93a91 Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Mon, 11 Mar 2024 15:45:58 +0100 Subject: [PATCH] [CI] Add github action for Ubuntu --- .github/workflows/ubuntu.yml | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/ubuntu.yml diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000000..46884e1418 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,50 @@ +name: ubuntu + +on: + workflow_dispatch: + push: + pull_request: + +jobs: + linux: + runs-on: ubuntu-latest + + steps: + # WxWidgets + - name: install dependencies for wxWidgets + run: sudo apt-get install build-essential clang-format-12 cmake git libedit-dev libgtk-3-dev libhunspell-dev libsqlite3-dev libssh-dev pkg-config xterm + + - name: Checkout WxWidgets + uses: actions/checkout@v4 + with: + repository: wxWidgets/wxWidgets + path: wxWidgets + ref: 3.2 + submodules: recursive + + - name: build and install wxWidgets + run: | + mkdir -p wxWidgets/build-release + cd wxWidgets/build-release + ../configure --disable-debug_flag --with-gtk=3 --enable-stl + make -j$(nproc) && sudo make install + + # Codelite + - name: install Codelite's dependencies + run: sudo apt-get install build-essential cmake git libpcre2-dev libsqlite3-dev libssh-dev + + - name: Checkout Codelite + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: build and install Codelite + run: | + mkdir build-release + cd build-release + cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1 + make -j$(nproc) + sudo make install + + - name: codelite --version + run: xvfb-run -a codelite --version || exit 0 # codelite --version returns -1