update to libssh 0.11.0 (#375) #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI_build | |
on: [push, pull_request] | |
jobs: | |
build_windows: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_configuration: [Release, Debug] | |
build_platform: [x64, ARM64, Win32] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: generate cmake | |
run: | | |
# avoid issue for x64 build to find false openssl by libssh | |
Remove-Item -Recurse -Force 'C:\Program Files\OpenSSL' | |
mkdir _build | |
cd _build | |
cmake -G "Visual Studio 17 2022" -A ${{ matrix.build_platform }} -T "v143" .. | |
- name: build cmake | |
run: | | |
cd _build | |
cmake --build . --config ${{ matrix.build_configuration }} --target package | |
- name: Archive artifacts for x64 | |
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugin_dll_x64 | |
path: _build\${{ matrix.build_configuration }}\NppFTP.dll | |
- name: Archive artifacts for x64 CPack | |
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cpack_plugin_dll_x64 | |
path: _build\NppFTP-0.30.18-win64.zip | |
- name: Archive artifacts for ARM64 | |
if: matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugin_dll_ARM64 | |
path: _build\${{ matrix.build_configuration }}\NppFTP.dll | |
- name: Archive artifacts for ARM64 CPack | |
if: matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cpack_plugin_dll_ARM64 | |
path: _build\NppFTP-0.30.18-win64.zip | |
- name: Archive artifacts for Win32 | |
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugin_dll_x86 | |
path: _build\${{ matrix.build_configuration }}\NppFTP.dll | |
- name: Archive artifacts for Win32 CPack | |
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cpack_plugin_dll_x86 | |
path: _build\NppFTP-0.30.18-win32.zip | |
build_linux: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_platform: ["64", "32"] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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@v4 | |
with: | |
name: NppFTP-x86.zip | |
path: NppFTP-x86.zip | |
- name: Archive artifacts for x64 | |
if: matrix.build_platform == '64' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NppFTP-x64.zip | |
path: NppFTP-x64.zip | |
- name: Release for x86 | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') && matrix.build_platform == '32' | |
with: | |
files: NppFTP-x86.zip | |
- name: Release for x64 | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') && matrix.build_platform == '64' | |
with: | |
files: NppFTP-x64.zip | |
build_linux_cmake: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_configuration: [Release, Debug] | |
build_platform: ["Unix Makefiles"] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 -DCMAKE_TOOLCHAIN_FILE=../cmake_toolchain-mingw-w64-ubuntu.cmake -G "${{ matrix.build_platform }}" .. | |
- name: build cmake | |
run: | | |
cd _build | |
cmake --build . --config ${{ matrix.build_configuration }} --target package | |
- name: Archive artifacts for x64 CPack | |
if: matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cpack_plugin_dll_x64_linux | |
path: _build/NppFTP-0.30.18-win64.zip |