Skip to content

Commit 768ef7a

Browse files
committed
Remove nuitka build since it's too slow
1 parent 9159f6c commit 768ef7a

File tree

2 files changed

+47
-86
lines changed

2 files changed

+47
-86
lines changed

.github/workflows/ci.yml

-86
Original file line numberDiff line numberDiff line change
@@ -39,89 +39,3 @@ jobs:
3939
make lint
4040
# `import pyglet` crashes on ubuntu-latest due to missing X window system
4141
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/*

.github/workflows/release.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Build Changelog
14+
id: github_release
15+
uses: mikepenz/release-changelog-builder-action@v3
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
configurationJson: |
20+
{
21+
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>\n\n---\n\n- For my daily development update, check [my Twitter/X](https://twitter.com/wkentaro_).\n- If you'd like to support this project, check [my sponsoring page](https://github.com/sponsors/wkentaro).",
22+
"pr_template": "- #{{TITLE}} ##{{NUMBER}}",
23+
"categories": [
24+
{
25+
"title": "## 🚀 Features",
26+
"labels": ["feature"]
27+
},
28+
{
29+
"title": "## ✨ Enhancement",
30+
"labels": ["enhancement"]
31+
},
32+
{
33+
"title": "## 🐛 Fixes",
34+
"labels": ["fix"]
35+
},
36+
{
37+
"title": "## 💬 Other",
38+
"labels": ["other"]
39+
}
40+
]
41+
}
42+
43+
- name: Release
44+
uses: softprops/action-gh-release@v1
45+
with:
46+
draft: true
47+
body: ${{steps.github_release.outputs.changelog}}

0 commit comments

Comments
 (0)