forked from pygame-web/pygbag
-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (91 loc) · 2.86 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: CI
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-22.04
env:
SDK_VERSION: 3.1.55.1bi
SYS_PYTHON: /usr/bin/python3
PACKAGES: emsdk hpy pygame
BUILD_STATIC: emsdk hpy
STATIC: false
BUILDS: 3.12 3.13
CYTHON: Cython-3.0.8-py2.py3-none-any.whl
LD_VENDOR: -sUSE_GLFW=3
steps:
- uses: actions/checkout@v4.1.0
- 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: Upload build artifact wheels
uses: actions/upload-artifact@v2.2.4
with:
name: wheel312
path: /home/runner/work/pygbag-raylib/pygbag-raylib/external/raylib-python-cffi/dist/*
- 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
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 sdk to Github Releases
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@2.3.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: $GITHUB_WORKSPACE/dist/*
file_glob: true
tag: ${{ github.ref }}
- name : "Upload to GitHub pages"
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: build/web/archives