From 029b929ca5d8af4d0394da1f90d13c704eeb0084 Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Sat, 2 Oct 2021 22:19:13 +0200 Subject: [PATCH] - removed travis CI, no longer available as free service - add GH CI action for releases from the ubuntu mingw build --- .github/workflows/CI_build.yml | 125 +++++++++++++++++++++++++++++++++ .travis.yml | 24 ------- README.md | 1 - 3 files changed, 125 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/CI_build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/CI_build.yml b/.github/workflows/CI_build.yml new file mode 100644 index 0000000..dcbeca0 --- /dev/null +++ b/.github/workflows/CI_build.yml @@ -0,0 +1,125 @@ +name: CI_build + +on: [push, pull_request] + +jobs: + build_windows: + + runs-on: windows-2019 + strategy: + max-parallel: 6 + matrix: + build_configuration: [Release, Debug] + build_platform: [x64, ARM64, Win32] + + steps: + - uses: actions/checkout@v2 + + - name: generate cmake + run: | + mkdir _build + cd _build + cmake -G "Visual Studio 16 2019" -A ${{ matrix.build_platform }} -T "v142" .. + + - name: build cmake + run: | + cd _build + cmake --build . --config ${{ matrix.build_configuration }} + + - name: Archive artifacts for x64 + if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' + uses: actions/upload-artifact@v2 + with: + name: plugin_dll_x64 + path: _build\${{ matrix.build_configuration }}\NppFTP.dll + + - name: Archive artifacts for ARM64 + if: matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release' + uses: actions/upload-artifact@v2 + with: + name: plugin_dll_ARM64 + path: _build\${{ matrix.build_configuration }}\NppFTP.dll + + - name: Archive artifacts for Win32 + if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Release' + uses: actions/upload-artifact@v2 + with: + name: plugin_dll_x86 + path: _build\${{ matrix.build_configuration }}\NppFTP.dll + + build_linux: + + runs-on: ubuntu-latest + strategy: + max-parallel: 2 + matrix: + build_platform: ["64", "32"] + + steps: + - uses: actions/checkout@v2 + + - name: Install packages via apt + run: | + sudo apt-get -qq update + sudo apt-get -qq install -y mingw-w64 python3 perl cmake zip + (for alt in i686-w64-mingw32-g++ i686-w64-mingw32-gcc x86_64-w64-mingw32-g++ x86_64-w64-mingw32-gcc; do sudo update-alternatives --set $alt /usr/bin/$alt-posix; done); + + - name: build make mingw + run: make -f Makefile.mingw BITS=${{ matrix.build_platform }} + + - name: Archive artifacts for x86 + if: matrix.build_platform == '32' + uses: actions/upload-artifact@v2 + with: + name: NppFTP-x86.zip + path: NppFTP-x86.zip + + - name: Archive artifacts for x64 + if: matrix.build_platform == '64' + uses: actions/upload-artifact@v2 + with: + name: NppFTP-x64.zip + path: NppFTP-x64.zip + + - name: Release for x86 + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') && matrix.build_platform == '32' + with: + files: NppFTP-x86.zip + + - name: Release for x64 + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') && matrix.build_platform == '64' + with: + files: NppFTP-x64.zip + + + + # build_linux_cmake: + + # runs-on: ubuntu-latest + # strategy: + # max-parallel: 2 + # matrix: + # build_configuration: [Release, Debug] + # build_platform: ["Unix Makefiles"] + + # steps: + # - uses: actions/checkout@v2 + + # - name: Install packages via apt + # run: | + # sudo apt-get -qq update + # sudo apt-get -qq install -y mingw-w64 python3 perl cmake zip + # (for alt in i686-w64-mingw32-g++ i686-w64-mingw32-gcc x86_64-w64-mingw32-g++ x86_64-w64-mingw32-gcc; do sudo update-alternatives --set $alt /usr/bin/$alt-posix; done); + + # - name: generate cmake + # run: | + # mkdir _build + # cd _build + # cmake -G "${{ matrix.build_platform }}" .. + + # - name: build cmake + # run: | + # cd _build + # cmake --build . --config ${{ matrix.build_configuration }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c164b9f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: cpp -dist: xenial -services: - - docker - -matrix: - include: - - os: linux - env: BITS=32 - - os: linux - env: BITS=64 - -script: -- docker run -v$PWD:/src -w /src ubuntu:bionic /bin/sh -c "apt-get -qq update && apt-get -qq install -y mingw-w64 python3 perl cmake zip && (for alt in i686-w64-mingw32-g++ i686-w64-mingw32-gcc x86_64-w64-mingw32-g++ x86_64-w64-mingw32-gcc; do update-alternatives --set \$alt /usr/bin/\$alt-posix; done); make -f Makefile.mingw BITS=$BITS" - -deploy: - provider: releases - file: NppFTP*.zip - file_glob: true - skip_cleanup: true - api_key: - secure: jOsdexeW9EJMtU06ElaBqSkHANTMbihGuMAfQydymOIwyIwqsXhKVowRLU7HYN8QUOMQnwi4CIdQZYCIIW9juSUTMIlcY0E1JxiRK/7R1JHWl6wfFr+kvOySYhpI2IYmKO0C07UEIdzoNhONWA4ZWUC3MFNOcKIg1qqMXQg2qNLgkhC+jNXQTQbXDaJZlKsgmWw8DGletqAMjakI3bchtgSlL5vzUs6B0sxHkZ9xoEeYsxdsDw3RJcLn8j35E6IY7mugurw2JxlQLS9mSE4j8iNnF/hFWe4j1qSjTYfI8q+T2dFIFZ0I7oqSRz4bbbj9W5zOPIkGQASES5PRL2GLxC0/R8k40lUL2uyltPXza7bJ9R26UyB1rRKiGrSYQUMBvdUwRIGYhrKm7snCuHNKYQVq3+Nxw75pVGKewPx4/C0hvuccIyFb7yZ7GebJHfjVTYsfncXCq5cgmvGTsvnPvtKy1KB3ggfoSAM3/EIzoWy9i/FkcpaxB5/jGmj9IEqTqCKkd+lHM8/bEKUXRR12md3/EXIMqrUaHUI9xVcP/HfIDLCYpRa9oUsapdVEMAkL3pmIi2GThydGSpjyigrvKIMjKwDoGgI+JfZPS8Pj7QZ3936bGXuJsZqvQCCpRduKA9fMm4q84Cp/De8YLlv+eSetmQ5C0IAgBZrnNOPLyk0= - on: - tags: true diff --git a/README.md b/README.md index cdb0839..e45500b 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,4 @@ Build Status ------------ [![Appveyor build status](https://ci.appveyor.com/api/projects/status/github/ashkulz/nppftp?branch=master&svg=true)](https://ci.appveyor.com/project/ashkulz/nppftp) -[![Travis build status](https://travis-ci.org/ashkulz/NppFTP.svg?branch=master)](https://travis-ci.org/ashkulz/NppFTP) [![GitHub release](https://img.shields.io/github/release/ashkulz/NppFTP.svg)](https://github.com/ashkulz/NppFTP/releases)