From 87d11df28751b3e24fa037c491939b417b91f756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cicho=C5=84?= Date: Thu, 8 Jul 2021 06:04:23 +0200 Subject: [PATCH] Use github actions instead of Travis and AppVeyor (#113) --- .github/workflows/build.yml | 61 +++++++++++++++++++++++++++++++++++++ .travis.yml | 40 ------------------------ appveyor.yml | 40 ------------------------ docs/CHANGELOG.txt | 2 ++ docs/README.md | 4 +-- 5 files changed, 64 insertions(+), 83 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..6c2ebc2e4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,61 @@ +name: build + +on: + push: + pull_request: + workflow_run: + # Use a workflow as a trigger of scheduled builds. Forked repositories can disable scheduled builds by disabling + # "scheduled" workflow, while maintaining ability to perform local CI builds. + workflows: + - scheduled + branches: + - master + - develop + types: + - requested + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + Windows: + runs-on: windows-2019 + env: + VS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\ + MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\ + + steps: + - uses: actions/checkout@v2 + - name: Configure CMake + run: cmake -S examples -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + macOS: + runs-on: macos-latest + + steps: + - name: Install Dependencies + run: | + brew install glfw3 + - uses: actions/checkout@v2 + - name: Configure CMake + run: cmake -S examples -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + Linux: + runs-on: ubuntu-latest + + steps: + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install -y libglfw3-dev + - uses: actions/checkout@v2 + - name: Configure CMake + run: cmake -S examples -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 479fb77f7..000000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: cpp - -compiler: - - gcc - - clang - -os: - - linux - - osx - -dist: focal - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - cmake - -cache: - directories: - - /usr/local/Homebrew - -before_install: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - sudo apt-get install libglfw3-dev libglfw3; - fi - - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - brew update; - brew install glfw3; - fi - - - cmake --version - -before_script: - - cmake -Hexamples -Bbuild - -script: - - cmake --build build --config Release diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index f82dddf95..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,40 +0,0 @@ -version: '{build}' -pull_requests: - do_not_increment_build_number: true -image: -- Visual Studio 2019 -- Visual Studio 2017 -- Visual Studio 2015 -configuration: -- Release -#- Debug -platform: -- x86 -- x64 -clone_depth: 1 -init: -- cmd: >- - set arch=Win32 - - if "%PLATFORM%"=="x64" ( set arch=x64) - - echo %APPVEYOR_BUILD_WORKER_IMAGE% - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set generator="Visual Studio 16 2019" ) - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017" ) - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015" ) - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013" ) - - echo %generator% -before_build: -- cmd: >- - cmake --version - - cmake -Hexamples -Bbuild -G %generator% -A %arch% -build: - project: build\ALL_BUILD.vcxproj - parallel: true - verbosity: minimal diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index 9f3760de0..a37b7bdd9 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -27,6 +27,8 @@ v0.9.1 (WIP): https://github.com/thedmd/imgui/tree/feature/layout - used in blueprints example only https://github.com/thedmd/imgui/tree/feature/extra-keys - optional: used by Node Editor if present + CHANGE: Use github actions instead of Travis and AppVeyor (#113) + NEW: All source components are now versioned NEW: Make view state independent of window resolution. diff --git a/docs/README.md b/docs/README.md index b4e28934a..8a33c653c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,8 +1,6 @@ # Node Editor in ImGui -[![Appveyor status](https://ci.appveyor.com/api/projects/status/lm0io3m8mv7avacp/branch/master?svg=true)](https://ci.appveyor.com/project/thedmd/imgui-node-editor/branch/master) -[![Travis status](https://travis-ci.org/thedmd/imgui-node-editor.svg?branch=master)](https://travis-ci.org/thedmd/imgui-node-editor) - +[![build](https://github.com/thedmd/imgui-node-editor/actions/workflows/build.yml/badge.svg)](https://github.com/thedmd/imgui-node-editor/actions/workflows/build.yml) ## About