-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (88 loc) · 2.52 KB
/
release_bindings.yaml
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
name: Publish Bindings to different programming languages
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
python:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions: write-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Build wheels with Docker
run: |
cd ryan-python
make user=tokahuke password=${{ secrets.PYPI_PASSWORD }} publish
cargo-install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Cargo login
run: |
echo ${{ secrets.CRATES_IO_TOKEN }} | cargo login
- name: Cargo Publish
run: |
cargo publish -p ryan-cli
javascript-web:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: wasm32-unknown-unknown
- name: Install wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build JS bindings with Wasm Pack
run: |
cd ryan-web
make build
cp readme.md ./pkg/readme.md
- name: Publish to NpmJS.org
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ryan-web/pkg/package.json
check-version: true
javascript-node:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: wasm32-unknown-unknown
- name: Install wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build JS bindings with Wasm Pack
run: |
cd ryan-js
make build
cp readme.md ./pkg/readme.md
- name: Publish to NpmJS.org
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ryan-js/pkg/package.json
check-version: true