-
-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (58 loc) · 1.55 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
name: CI
on:
workflow_dispatch:
release:
# this runs CI only when a release is created at first (and not when it is
# edited or published)
types: [created]
push:
branches: main
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-22.04
env:
BUILDS: 3.12 3.13
SDKROOT: /opt/python-wasm-sdk
EMFLAVOUR: latest
Py_GIL_DISABLED: false
wasisdk: true
gosdk: false
rustsdk: false
nimsdk: false
steps:
- uses: actions/checkout@v3.3.0
- name: Display CI properties
run: |
WD=$(pwd)
python3 -V
echo $WD
clang --version | head -n 1
echo
gcc --version | head -n 1
echo "Github env:"
env|grep GITHUB
echo "Android support:"
env|grep ANDROID
- name: Install dependencies
run: |
sudo apt-get update --fix-missing
# git clang libffi-dev libssl-dev zlib1g-dev pkg-config libncursesw5-dev python3-pip make
sudo apt-get install -y bash patchelf wget lz4
- name: Build sdk
run: |
chmod +x ./python-wasm-sdk.sh
bash -c "./python-wasm-sdk.sh"
- name: Upload sdk to Github artifacts
uses: actions/upload-artifact@v3.1.1
with:
path: /tmp/sdk
- 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: /tmp/sdk/*
file_glob: true
tag: ${{ github.ref }}