|
39 | 39 | make lint
|
40 | 40 | # `import pyglet` crashes on ubuntu-latest due to missing X window system
|
41 | 41 | if: matrix.os == 'macos-latest'
|
42 |
| - |
43 |
| - - name: Build Executable |
44 |
| - uses: Nuitka/Nuitka-Action@main |
45 |
| - with: |
46 |
| - nuitka-version: main |
47 |
| - script-name: imshow |
48 |
| - onefile: true |
49 |
| - |
50 |
| - - name: Test Executable |
51 |
| - run: | |
52 |
| - ./build/imshow.bin --version |
53 |
| - # `import pyglet` crashes on ubuntu-latest due to missing X window system |
54 |
| - if: matrix.os == 'macos-latest' |
55 |
| - |
56 |
| - - name: Rename Executable |
57 |
| - run: | |
58 |
| - mv build/imshow.bin build/imshow-${{ runner.os }}.bin |
59 |
| - if: matrix.os != 'windows-latest' |
60 |
| - |
61 |
| - - name: Upload Artifacts |
62 |
| - uses: actions/upload-artifact@v4 |
63 |
| - with: |
64 |
| - name: build-${{ runner.os }} |
65 |
| - path: | |
66 |
| - build/*.exe |
67 |
| - build/*.bin |
68 |
| -
|
69 |
| - release: |
70 |
| - needs: build |
71 |
| - |
72 |
| - permissions: |
73 |
| - contents: write |
74 |
| - |
75 |
| - if: startsWith(github.ref, 'refs/tags/') |
76 |
| - |
77 |
| - runs-on: ubuntu-latest |
78 |
| - |
79 |
| - steps: |
80 |
| - - name: Build Changelog |
81 |
| - id: github_release |
82 |
| - uses: mikepenz/release-changelog-builder-action@v3 |
83 |
| - env: |
84 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
85 |
| - with: |
86 |
| - configurationJson: | |
87 |
| - { |
88 |
| - "template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>\n", |
89 |
| - "pr_template": "- #{{TITLE}} ##{{NUMBER}}", |
90 |
| - "categories": [ |
91 |
| - { |
92 |
| - "title": "## 🚀 Features", |
93 |
| - "labels": ["feature"] |
94 |
| - }, |
95 |
| - { |
96 |
| - "title": "## ✨ Enhancement", |
97 |
| - "labels": ["enhancement"] |
98 |
| - }, |
99 |
| - { |
100 |
| - "title": "## 🐛 Fixes", |
101 |
| - "labels": ["fix"] |
102 |
| - }, |
103 |
| - { |
104 |
| - "title": "## 💬 Other", |
105 |
| - "labels": ["other"] |
106 |
| - } |
107 |
| - ] |
108 |
| - } |
109 |
| -
|
110 |
| - - name: Create Changelog |
111 |
| - run: | |
112 |
| - echo '${{steps.github_release.outputs.changelog}}' > ${{ github.workspace }}-CHANGELOG.txt |
113 |
| -
|
114 |
| - - name: Download Artifact |
115 |
| - uses: actions/download-artifact@v4 |
116 |
| - with: |
117 |
| - path: build |
118 |
| - pattern: build-* |
119 |
| - merge-multiple: true |
120 |
| - |
121 |
| - - name: Release |
122 |
| - uses: softprops/action-gh-release@v1 |
123 |
| - with: |
124 |
| - draft: true |
125 |
| - body_path: ${{ github.workspace }}-CHANGELOG.txt |
126 |
| - files: | |
127 |
| - build/* |
0 commit comments