Skip to content

Commit ffb788b

Browse files
authored
Merge pull request #4 from brain-hackers/release
Create a binary release etc.
2 parents 6a8bafa + 4b690ad commit ffb788b

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

.github/workflows/build_ce.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ on:
88
branches: "*"
99

1010
jobs:
11-
1211
build:
13-
1412
runs-on: ubuntu-latest
1513

1614
steps:
1715
- name: Checkout
1816
uses: actions/checkout@v3
1917
with:
2018
submodules: 'true'
21-
19+
20+
- name: Install deps
21+
run: sudo apt install libltdl-dev
22+
2223
- name: Setup Python
2324
uses: actions/setup-python@v4
2425
with:
@@ -27,7 +28,7 @@ jobs:
2728
- name: Install CeGCC
2829
run: |
2930
wget https://github.com/brain-hackers/cegcc-build/releases/download/2022-10-26-225811/cegcc-x86_64-2022-10-26-225811.zip -O cegcc.zip
30-
unzip cegcc.zip -d /opt
31+
unzip cegcc.zip -d /opt
3132
3233
- name: Download Tcl/Tk
3334
run: wget https://master.dl.sourceforge.net/project/tcltkce/tcltkce/8.4.6/tcltk846ce-arm.zip?viasf=1 -O tcltk.zip
@@ -36,7 +37,7 @@ jobs:
3637
run: |
3738
unzip tcltk.zip
3839
mv tcltk846ce-arm/bin/*.dll .
39-
40+
4041
- name: Build
4142
run: |
4243
export PATH=$PATH:/opt/cegcc/bin
@@ -46,14 +47,21 @@ jobs:
4647
- name: Pack
4748
run: ./ce_pack.sh
4849

49-
- name: Upload log
50-
uses: actions/upload-artifact@v4
51-
with:
52-
name: log
53-
path: make.log
50+
- name: Compress Python
51+
id: compress-python
52+
run: |
53+
VER=$(grep -E '^#define\s+PY_VERSION\s+' Include/patchlevel.h | sed -E 's/.+\"(.+)\"/\1/g')
54+
echo "pyzip=python-wince-${VER}.zip" >> $GITHUB_OUTPUT
55+
mv wince_build python-wince-${VER}
56+
zip -r python-wince-${VER}.zip python-wince-${VER}
57+
58+
- name: Compress log
59+
run: gzip make.log
5460

55-
- name: Upload zip file
56-
uses: actions/upload-artifact@v4
61+
- name: Create release and upload assets
62+
uses: softprops/action-gh-release@v2
63+
if: github.ref_type == 'tag'
5764
with:
58-
name: cpython-wince
59-
path: wince_build
65+
files: |
66+
${{ steps.compress-python.outputs.pyzip }}
67+
make.log.gz

0 commit comments

Comments
 (0)