Skip to content

Commit 5588ee9

Browse files
committed
add github actions
1 parent a10d2aa commit 5588ee9

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

.github/workflows/ubuntu.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Ubuntu
2+
run-name: Build on Ubuntu 24.04
3+
on: [push, pull_request]
4+
jobs:
5+
GCC-13:
6+
runs-on: ubuntu-24.04
7+
#runs-on: ubuntu-latest
8+
steps:
9+
- run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test
10+
- run: sudo apt-get -y install libjpeg8-dev libpng-dev libasound2-dev libx11-dev libxft-dev libxcursor-dev cmake xvfb
11+
#- run: sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
12+
- run: g++ -v
13+
- name: Check out repository code
14+
uses: actions/checkout@v4
15+
# we are in /home/runner/work/nana/nana
16+
- run: git clone --depth=1 --branch=develop https://github.com/qPCR4vir/nana-demo.git nana-demo
17+
working-directory: ../
18+
- run: mkdir nana-demo-build
19+
working-directory: ../
20+
- 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
21+
working-directory: ../nana-demo-build
22+
- run: make install
23+
working-directory: ../nana-demo-build
24+
- name: Setup xvfb for screen 0
25+
run: Xvfb :1 -screen 0 1600x1200x24 &
26+
- run: ctest --verbose
27+
working-directory: ../nana-demo-build
28+
env:
29+
DISPLAY: :1
30+
- run: ls
31+
working-directory: ../nana-demo-build
32+
- run: ls -lh
33+
working-directory: ../nana-test/bin
34+
- run: echo "This job's status is ${{ job.status }}."

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Nana C++ Library
2-
[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)
32

4-
[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)
3+
[![Ubuntu](https://github.com/cnjinhao/nana/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/cnjinhao/nana/actions?query=workflow%3AUbuntu)
54

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

8-
97
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.
108

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

2119
## Support
2220

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

2523
## Sending a Pull Request ?
2624

0 commit comments

Comments
 (0)