Change building pipeline #286
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 Project | |
| # Workflow will trigger on any push to the master/main branch | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| jobs: | |
| Autocompilation: | |
| # Our project is windows only, so we will compile project at windows server | |
| runs-on: windows-2022 | |
| steps: | |
| # Cloning all repository recursively | |
| - name: Get Sources | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| # Check this about more info: https://github.com/marketplace/actions/install-version-specific-mingw | |
| # Setting up MinGW_x64 version 8.1.0 | |
| - name: Set Up MinGW | |
| uses: egor-tensin/setup-mingw@v2 | |
| with: | |
| platform: x64 | |
| version: 12.2.0 | |
| # Check this about more info: https://github.com/marketplace/actions/install-qt | |
| # This action cannot download needed mingw810 | |
| # So it downloads only Qt part | |
| - name: Set Up Qt | |
| uses: jurplel/install-qt-action@v3 | |
| with: | |
| version: 5.15.2 | |
| arch: win64_mingw81 | |
| target: desktop | |
| dir: C:\ | |
| # Check this about more info: https://github.com/marketplace/actions/cmake-action | |
| - name: Set Up CMake | |
| uses: threeal/[email protected] | |
| with: | |
| run-build: false | |
| # Compile code | |
| - name: Compile Project | |
| shell: cmd | |
| run: | | |
| call Build.bat | |
| # Upload artifact to the GitHub | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| # ${{github.sha}} - commit long hash name | |
| name: GenHotkeys-${{github.sha}} | |
| # zip all content in the "build\exe" folder | |
| path: build/exe/** |