-
-
Notifications
You must be signed in to change notification settings - Fork 39
91 lines (79 loc) · 2.4 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: CI
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-22.04
env:
SDK_VERSION: 3.1.65.8bi
SYS_PYTHON: /usr/bin/python3
PACKAGES: emsdk hpy pygame
BUILD_STATIC: emsdk hpy
STATIC: false
BUILDS: 3.12 3.13
CYTHON: Cython-3.0.10-py2.py3-none-any.whl
LD_VENDOR: -sUSE_GLFW=3
steps:
- uses: actions/[email protected]
- name: pygame-wasm-builder prepare
run: |
pwd
echo
python3 -V
echo
clang --version | head -n 1
echo
gcc --version | head -n 1
echo
echo CI=$CI
echo
env|grep GITHUB
echo
env|grep ANDROID
echo
sudo apt-get update 2>&1 >/dev/null
sudo apt-get install -y bash git curl wget lz4 pv 2>&1 >/dev/null
#
# - name: build 3.11 packages
# run: |
# cd $GITHUB_WORKSPACE
# PYBUILD=3.11 PACKAGES="emsdk hpy _ctypes pygame" BUILD_STATIC="emsdk _ctypes hpy" bash ./scripts/build-pkg.sh
#
# - name: build 3.11 loader
# run: |
# cd $GITHUB_WORKSPACE
# PYBUILD=3.11 PACKAGES="emsdk hpy _ctypes pygame" BUILD_STATIC="emsdk _ctypes hpy" bash ./scripts/build-loader.sh
#
- name: build 3.12 packages
run: |
cd $GITHUB_WORKSPACE
PYBUILD=3.12 bash ./scripts/build-pkg.sh
- name: build 3.12 loader
run: |
cd $GITHUB_WORKSPACE
PYBUILD=3.12 bash ./scripts/build-loader.sh
- name: build 3.13 packages
run: |
cd $GITHUB_WORKSPACE
PYBUILD=3.13 bash ./scripts/build-pkg.sh
- name: build 3.13 loader
run: |
cd $GITHUB_WORKSPACE
PYBUILD=3.13 bash ./scripts/build-loader.sh
- name: build PkPy loader
run: |
cd $GITHUB_WORKSPACE
bash ./scripts/build-pkpy.sh
- name: publishing
run: |
cd $GITHUB_WORKSPACE
touch build/web/archives/.nojekyll
echo "<html></html>" > build/web/archives/index.html
- name: make wheel
run: |
cd $GITHUB_WORKSPACE
/opt/python-wasm-sdk/python3-wasm -m build --no-isolation .
- name : "Upload to GitHub pages"
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build/web/archives