|
1 | | -name: Build linux app |
| 1 | +name: Build Linux App |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | branches: [ qt ] |
6 | 6 |
|
| 7 | +permissions: |
| 8 | + contents: write |
| 9 | + |
7 | 10 | jobs: |
8 | 11 | build-linux: |
9 | 12 | runs-on: ubuntu-latest |
10 | 13 | env: |
11 | 14 | RUNNER_TOOL_CACHE: /toolcache |
12 | 15 |
|
13 | 16 | steps: |
14 | | - - uses: actions/checkout@v4 |
| 17 | + - name: Checkout code |
| 18 | + uses: actions/checkout@v4 |
15 | 19 |
|
16 | | - - uses: actions/setup-python@v5 |
| 20 | + - name: Setup Python |
| 21 | + uses: actions/setup-python@v5 |
17 | 22 | with: |
18 | | - python-version: '3.12' # Use stable Python that matches hosted runner's GLIBC |
| 23 | + python-version: '3.12' |
19 | 24 |
|
20 | | - - run: sudo apt update |
21 | | - - run: sudo apt install -y portaudio19-dev python3-pyaudio patchelf |
| 25 | + - name: Install system dependencies |
| 26 | + run: | |
| 27 | + sudo apt update |
| 28 | + sudo apt install -y portaudio19-dev python3-pyaudio patchelf |
22 | 29 |
|
23 | | - - run: pip install --upgrade pip wheel |
24 | | - - run: pip install -r requirements-linux.txt |
25 | | - - run: pip install nuitka argparse requests |
| 30 | + - name: Install Python dependencies |
| 31 | + run: | |
| 32 | + pip install --upgrade pip wheel |
| 33 | + pip install -r requirements-linux.txt |
| 34 | + pip install nuitka argparse requests |
26 | 35 |
|
27 | 36 | - name: Build with Nuitka |
28 | 37 | run: nuitka underbridge.py |
29 | 38 |
|
30 | | - - run: ls dist/ |
| 39 | + - name: List output files |
| 40 | + run: ls dist/ |
31 | 41 |
|
32 | 42 | - name: Zip the output |
33 | 43 | run: python zipit.py dist/Underbridge.dist underbridge-light.zip |
34 | 44 |
|
35 | | - - name: Create GitHub Release and Upload Asset |
| 45 | + - name: Create GitHub Release and Upload Asset (tag: qt) |
36 | 46 | uses: softprops/action-gh-release@v1 |
37 | 47 | with: |
38 | | - name: "Underbridge-light Release" |
39 | | - tag: ${{ github.ref_name }} |
40 | | - draft: true |
41 | | - assets: | |
42 | | - underbridge-light.zip |
| 48 | + tag_name: qt |
| 49 | + name: "Underbridge-light Release (qt)" |
| 50 | + draft: false |
| 51 | + prerelease: false |
| 52 | + files: underbridge-light.zip |
43 | 53 |
|
44 | 54 | - name: Upload to Server |
45 | 55 | run: | |
|
49 | 59 | https://cloud.raise-uav.com/ \ |
50 | 60 | underbridge-light.zip \ |
51 | 61 | App_Release/light/underbridge-light-linux.zip |
| 62 | +
|
0 commit comments