| 1 | name: Build workflow |
| 2 | |
| 3 | on: |
| 4 | workflow_call: |
| 5 | |
| 6 | env: |
| 7 | package_origin: gh |
| 8 | |
| 9 | jobs: |
| 10 | build-ubuntu: |
| 11 | runs-on: ubuntu-latest |
| 12 | name: Ubuntu builder |
| 13 | steps: |
| 14 | - name: Configure base system |
| 15 | run: | |
| 16 | git config --global init.defaultBranch master |
| 17 | - name: Checkout repository code |
| 18 | uses: actions/checkout@v3 |
| 19 | with: |
| 20 | fetch-depth: 0 |
| 21 | - name: Compile repository code |
| 22 | id: compile |
| 23 | shell: bash |
| 24 | run: | |
| 25 | sudo apt-get update |
| 26 | sudo apt-get install qtbase5-dev qt5-qmake |
| 27 | make |
| 28 | cd derived/bin |
| 29 | tar cvf ../../openmsx-debugger-ubuntu-${{ env.package_origin }}.tbz . |
| 30 | - name: Upload redistributable package for Ubuntu |
| 31 | uses: actions/upload-artifact@v3 |
| 32 | with: |
| 33 | name: ubuntu |
| 34 | path: | |
| 35 | openmsx-debugger-ubuntu-${{ env.package_origin }}.tbz |
| 36 | if-no-files-found: error |
| 37 | retention-days: 3 |