Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cnjinhao committed May 18, 2024
1 parent a10d2aa commit 5588ee9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Ubuntu
run-name: Build on Ubuntu 24.04
on: [push, pull_request]
jobs:
GCC-13:
runs-on: ubuntu-24.04
#runs-on: ubuntu-latest
steps:
- run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- run: sudo apt-get -y install libjpeg8-dev libpng-dev libasound2-dev libx11-dev libxft-dev libxcursor-dev cmake xvfb
#- run: sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
- run: g++ -v
- name: Check out repository code
uses: actions/checkout@v4
# we are in /home/runner/work/nana/nana
- run: git clone --depth=1 --branch=develop https://github.com/qPCR4vir/nana-demo.git nana-demo
working-directory: ../
- run: mkdir nana-demo-build
working-directory: ../
- run: cmake -G"Unix Makefiles" ../nana-demo -DCMAKE_INSTALL_PREFIX=.. -DNANA_CMAKE_ENABLE_JPEG=ON -DNANA_CMAKE_FIND_BOOST_FILESYSTEM=OFF -DNANA_CMAKE_AUTOMATIC_GUI_TESTING=ON -DNANA_CMAKE_INSTALL=OFF
working-directory: ../nana-demo-build
- run: make install
working-directory: ../nana-demo-build
- name: Setup xvfb for screen 0
run: Xvfb :1 -screen 0 1600x1200x24 &
- run: ctest --verbose
working-directory: ../nana-demo-build
env:
DISPLAY: :1
- run: ls
working-directory: ../nana-demo-build
- run: ls -lh
working-directory: ../nana-test/bin
- run: echo "This job's status is ${{ job.status }}."
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Nana C++ Library
[Linux (gcc 8.3.0 and 9.2)![TravisCI build status](https://travis-ci.org/cnjinhao/nana.svg)](https://travis-ci.org/cnjinhao/nana) including [(nana-demos)](https://github.com/qPCR4vir/nana-demo)

[Windows (Microsoft (R) Build Engine version 15.9.21) ![AppVeyor build status](https://ci.appveyor.com/api/projects/status/5j79p9fi887usv7h?svg=true)](https://ci.appveyor.com/project/qPCR4vir/nana)
[![Ubuntu](https://github.com/cnjinhao/nana/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/cnjinhao/nana/actions?query=workflow%3AUbuntu)

[![Licence](https://img.shields.io/badge/license-BSL-blue.svg?style=flat)](LICENSE)


Nana is a C++ standard-like GUI library designed to allow developers to easily create cross-platform GUI applications with modern C++ style. Currently it is regularly tested on Linux(X11) and Windows, and experimentally on macOS and FreeBSD. The [nana repository](https://github.com/cnjinhao/nana) contains the entire source of the library. You can browse the source code and submit your pull request for contributing.

## License
Expand All @@ -20,7 +18,7 @@ Jinhao, [Ariel Viña Rodríguez].

## Support

The best way to get help with Nana library is by visiting http://nanapro.org/help.htm
The best way to get help with Nana library is by visiting https://nana.acemind.cn/documentation

## Sending a Pull Request ?

Expand Down

0 comments on commit 5588ee9

Please sign in to comment.