mirror of
https://github.com/socketio/socket.io-client-cpp.git
synced 2026-06-09 19:54:46 +00:00
ci: migrate to GitHub Actions
Due to the recent changes to the Travis CI platform (see [1]), we will now use GitHub Actions to run the tests. Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs [1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
This commit is contained in:
parent
019742fcd5
commit
8d4fe204f1
26
.github/workflows/ci.yml
vendored
Normal file
26
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.0.0
|
||||
|
||||
- name: Build project
|
||||
uses: nicledomaS/cmake_build_action@v1.3
|
||||
with:
|
||||
submodule_update: ON
|
||||
run_tests: ON
|
||||
unit_test_build: -DBUILD_UNIT_TESTS=ON
|
||||
cmake_args: -DCMAKE_CXX_FLAGS=-std=c++11
|
||||
17
.travis.yml
17
.travis.yml
@ -1,17 +0,0 @@
|
||||
language: cpp
|
||||
|
||||
compiler:
|
||||
- clang
|
||||
|
||||
before_install:
|
||||
- sudo apt-get install clang git libssl-dev
|
||||
- sudo add-apt-repository -y ppa:kubuntu-ppa/backports
|
||||
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test -y
|
||||
- sudo apt-get update -yqq
|
||||
- sudo apt-get install -y cmake g++-4.8
|
||||
- sed -i -e 's/cmake_minimum_required(VERSION 3.1.0/cmake_minimum_required(VERSION 2.8.12/' ./CMakeLists.txt
|
||||
script:
|
||||
- cmake -D CMAKE_CXX_FLAGS=-std=c++11 -D BUILD_UNIT_TESTS=ON .
|
||||
- make
|
||||
- make test
|
||||
- make install
|
||||
@ -1,5 +1,6 @@
|
||||
# Socket.IO C++ Client
|
||||
[](https://travis-ci.org/socketio/socket.io-client-cpp)
|
||||
|
||||
[](https://github.com/socketio/socket.io-client-cpp/actions)
|
||||
|
||||
By virtue of being written in C++, this client works in several different platforms. The [examples](https://github.com/socketio/socket.io-client-cpp/tree/master/examples) folder contains an iPhone, QT and Console example chat client! It depends on [websocket++](https://github.com/zaphoyd/websocketpp) and is inspired by [socket.io-clientpp](https://github.com/ebshimizu/socket.io-clientpp).
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 378437aecdcb1dfe62096ffd5d944bf1f640ccc3
|
||||
Subproject commit 56123c87598f8b1dd471be83ca841ceae07f95ba
|
||||
Loading…
x
Reference in New Issue
Block a user