-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (41 loc) · 1.08 KB
/
build.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
name: Build workflow
on:
push:
branches-ignore:
- 'master'
tags-ignore:
- '**'
paths:
- '.github/workflows/build.yaml'
- 'api/binding.h'
- 'api/libgo_owasm.dylib'
- 'api/libgo_owasm.so'
- 'libgo_owasm/**'
- 'build/**'
- 'Makefile'
jobs:
build_shared_libs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build docker images
run: |
make docker-image-linux
make docker-image-osx
- name: Build shared libs
run: |
make release-linux
make release-osx
- name: Check if there is any change
id: check-diff
run: |
git add -A
git diff HEAD --quiet || echo "diff=true" >> $GITHUB_OUTPUT
- name: Commit and Push libs
if: steps.check-diff.outputs.diff == 'true'
run: |
git config --global user.name 'Builder'
git config --global user.email '[email protected]'
git commit -am "Built shared libs"
git push