-
Notifications
You must be signed in to change notification settings - Fork 3
71 lines (59 loc) · 2.26 KB
/
publish-bindings-go.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
name: Publish libraries for all targets
on:
workflow_call:
secrets:
GLALBY_GO_DEPLOY_KEY:
required: true
jobs:
publish-glalby-go:
runs-on: ubuntu-20.04
if: github.ref_name == 'master' || github.head_ref == 'master'
steps:
- name: Checkout glalby-go
uses: actions/checkout@v4
with:
repository: getAlby/glalby-go
ssh-key: ${{ secrets.GLALBY_GO_DEPLOY_KEY }}
- name: Download bindings
uses: actions/download-artifact@v4
with:
name: glalby-bindings
path: glalby
- name: Download Linux x86_64 libs
uses: actions/download-artifact@v4
with:
name: glalby-bindings-x86_64-unknown-linux-gnu
path: glalby/x86_64-unknown-linux-gnu
- name: Download Linux aarch64 libs
uses: actions/download-artifact@v4
with:
name: glalby-bindings-aarch64-unknown-linux-gnu
path: glalby/aarch64-unknown-linux-gnu
- name: Download Linux ARM libs
uses: actions/download-artifact@v4
with:
name: glalby-bindings-arm-unknown-linux-gnueabihf
path: glalby/arm-unknown-linux-gnueabihf
- name: Download Windows x86_64 MSVC libs
uses: actions/download-artifact@v4
with:
name: glalby-bindings-x86_64-pc-windows-msvc
path: glalby/x86_64-pc-windows-msvc
- name: Download macOS libs
uses: actions/download-artifact@v4
with:
name: glalby-bindings-universal-apple-darwin
path: glalby/universal-macos
- name: Commit and push bindings
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions"
git config --global push.autoSetupRemote true
git add glalby/glalby.go glalby/glalby.h glalby/glalby.c
git add glalby/x86_64-unknown-linux-gnu/libglalby_bindings.so
git add glalby/aarch64-unknown-linux-gnu/libglalby_bindings.so
git add glalby/arm-unknown-linux-gnueabihf/libglalby_bindings.so
git add glalby/x86_64-pc-windows-msvc/glalby_bindings.dll
git add glalby/universal-macos/libglalby_bindings.dylib
git commit -m "Update bindings."
git push