Skip to content

src:Fix SSH2 error handling #341

src:Fix SSH2 error handling

src:Fix SSH2 error handling #341

Workflow file for this run

name: macos
on:
push:
branches: [ main ]
paths-ignore:
- 'doc/**'
- 'docs/**'
- 'README.md'
- 'README_zh_CN.md'
- 'DEVELOPNOTE.md'
- 'CHANGELOG.md'
- '.readthedocs.yaml'
pull_request:
branches: [ main ]
paths-ignore:
- 'doc/**'
- 'docs/**'
- 'README.md'
- 'README_zh_CN.md'
- 'DEVELOPNOTE.md'
- 'CHANGELOG.md'
- '.readthedocs.yaml'
workflow_dispatch:
jobs:
macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.5.3'
modules: 'qt5compat qtwebsockets qtserialport qtmultimedia'
aqtversion: ==3.1.7
- name: Install prerequisites
run: |
ruby - e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2 > /dev/null
brew install --build-from-source cmake
brew install create-dmg
- name: build libssh2
run: |
cd depend
export PATH=$Qt6_DIR/bin:$PATH
./build_libssh2.sh
sudo cp -R ./output /usr/local/
- name: Build all
run: |
git fetch --tags --force
git describe --always --long --dirty --abbrev=10 --tags | awk '{print "\""$0"\""}' > git_tag.inc
sed -i'.original' -e 's/git_tag.inc/git_tag.ci.inc/g' quardCRT.pro
sed -i'.original' -e 's/QT_DIR=\/opt\/Qt6.2.0\/6.2.0\/gcc_64/QT_DIR=$(cd "$(dirname "$0")";pwd)\/..\/Qt\/6.5.3\/macos/g' build_dmg.sh
sed -i'.original' -e 's/LIBSSH2_DIR=\/libssh2/LIBSSH2_DIR=\/usr\/local\/output/g' ./lib/qtssh/qtssh.pri
./build_dmg.sh
- name: Upload build asserts
uses: actions/[email protected]
with:
name: quardCRT_macos
path: |
./build_release/out/quardCRT.dmg
- name: Run tests
run: |
sudo hdiutil attach ./build_release/out/quardCRT.dmg
/Volumes/quardCRT/quardCRT.app/Contents/MacOS/quardCRT --version