more docstring improvments #259
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build_ubuntu_24: | |
| strategy: | |
| matrix: | |
| QT_VERSION: [5.12.8, 6.7.0] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4 | |
| with: | |
| version: ${{matrix.QT_VERSION}} | |
| setup-python: 'false' | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Configure | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build --parallel 4 --config ${{env.BUILD_TYPE}} | |
| build_windows: | |
| strategy: | |
| matrix: | |
| QT_VERSION: [5.12.8, 6.7.0] | |
| runs-on: windows-2022 | |
| steps: | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4 | |
| with: | |
| version: ${{matrix.QT_VERSION}} | |
| - name: Add msbuild to PATH | |
| uses: microsoft/setup-msbuild@v3 | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Configure | |
| run: | | |
| cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G"Visual Studio 17 2022" | |
| - name: Build | |
| run: | |
| cmake --build ${{github.workspace}}/build --parallel 4 --target ALL_BUILD --config ${{env.BUILD_TYPE}} | |
| - name: Deploy app | |
| run: | | |
| mkdir nedit-ng-win64-qt${{matrix.QT_VERSION}} | |
| cp ${{github.workspace}}/build/${{env.BUILD_TYPE}}/nedit-ng.exe nedit-ng-win64-qt${{matrix.QT_VERSION}}/ | |
| cp ${{github.workspace}}/build/${{env.BUILD_TYPE}}/nc-ng.exe nedit-ng-win64-qt${{matrix.QT_VERSION}}/ | |
| cd nedit-ng-win64-qt${{matrix.QT_VERSION}} | |
| windeployqt --release nedit-ng.exe | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: nedit-ng-win64-qt${{matrix.QT_VERSION}} | |
| path: nedit-ng-win64-qt${{matrix.QT_VERSION}}/ | |
| build_macos: | |
| strategy: | |
| matrix: | |
| QT_VERSION: [6.7.0] | |
| runs-on: macos-15 | |
| steps: | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4 | |
| with: | |
| version: ${{matrix.QT_VERSION}} | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Configure | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build --parallel 4 --config ${{env.BUILD_TYPE}} | |
| - name: Deploy app | |
| run: | | |
| mkdir nedit-ng-macos-arm-qt${{matrix.QT_VERSION}} | |
| cp -a ${{github.workspace}}/build/nedit-ng.app nedit-ng-macos-arm-qt${{matrix.QT_VERSION}}/ | |
| cp -a ${{github.workspace}}/build/nc-ng.app nedit-ng-macos-arm-qt${{matrix.QT_VERSION}}/ | |
| cd nedit-ng-macos-arm-qt${{matrix.QT_VERSION}} | |
| macdeployqt nedit-ng.app | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: nedit-ng-macos-arm-qt${{matrix.QT_VERSION}} | |
| path: nedit-ng-macos-arm-qt${{matrix.QT_VERSION}}/ | |
| build_flatpak: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.7 | |
| options: --privileged | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - name: Build flatpak | |
| uses: flathub-infra/flatpak-github-actions/flatpak-builder@master | |
| with: | |
| bundle: io.github.eteran.nedit_ng.flatpak | |
| manifest-path: flatpak/io.github.eteran.nedit_ng.yml | |
| cache-key: flatpak-builder-${{ github.sha }} | |
| upload-artifact: false | |
| - name: Upload flatpak bundle | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: io.github.eteran.nedit_ng | |
| path: io.github.eteran.nedit_ng.flatpak | |
| archive: false |