- Install gcc/g++ version 11 (for C++20)
- Install pCap dev headers and library
- Install wxGTK
- Install Boost
Here's what I've got for the '.yml' file:
Code: Select all
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install GCC11, pCap, wxWidgets
run: sudo apt update && sudo apt install -y gcc-11 g++-11 libpcap-dev libwxgtk3.0-gtk3-dev && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
- name: Install Boost
run: sudo apt install -y libboost-all-dev
- name: Display versions of tools and libraries
continue-on-error: true
run: uname -a; cat /usr/include/boost/version.hpp | grep "define BOOST_LIB_VERSION"; wx-config --list; wx-config --cxxflags; wx-config --libs; g++ --version | grep g++
- name: make
run: make
- name: Check binary file
run: ls -alh dynamo; file dynamo
I install Boost separate from the other libraries because I tried to add the latest Ubuntu repository in order to download Boost 1.74, but I couldn't get it to work. This downloads 1.71. Alternatively I could download the source for 1.74 and compile it but that would take ~45mins. I suppose I could also create my own '.deb' file for 1.74 but that's another day's work.
It works.