Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Add github action for Ubuntu #3327

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -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