File tree Expand file tree Collapse file tree 2 files changed +6
-42
lines changed Expand file tree Collapse file tree 2 files changed +6
-42
lines changed Original file line number Diff line number Diff line change 1
1
on : [workflow_call]
2
2
3
3
name : libextism
4
- description : Installs Extism runtime from git
5
4
6
5
runs :
7
6
using : composite
8
7
steps :
9
8
- uses : actions/checkout@v3
10
- - uses : actions-rs/toolchain@v1
11
9
with :
12
- toolchain : stable
13
- - uses : actions/setup-python@v4
14
- with :
15
- python-version : ' 3.10'
16
- - name : Install Extism
10
+ repository : extism/cli
11
+ path : .extism-cli
12
+ - uses : ./.extism-cli/.github/actions/extism-cli
13
+ - name : Install
17
14
shell : bash
18
- run : |
19
- pip install poetry
20
- pip install git+https://github.com/extism/cli
21
- extism install git
22
- - name : Upload libextism.so
23
- uses : actions/upload-artifact@v2
24
- with :
25
- name : libextism-so-artifact
26
- path : /usr/local/lib/libextism.so
27
- - name : Upload libextism.h
28
- uses : actions/upload-artifact@v2
29
- with :
30
- name : libextism-h-artifact
31
- path : /usr/local/include/extism.h
32
-
15
+ run : sudo extism lib install --version git
Original file line number Diff line number Diff line change 7
7
branches : [ main ]
8
8
9
9
jobs :
10
- prepare :
11
- name : Install Extism Runtime
12
- runs-on : ubuntu-latest
13
- steps :
14
- - uses : actions/checkout@v3
15
- - uses : ./.github/actions/libextism
16
10
java :
17
11
name : Java
18
12
runs-on : ${{ matrix.os }}
19
- needs : prepare
20
13
strategy :
21
14
matrix :
22
15
os : [ubuntu-latest]
26
19
steps :
27
20
- name : Checkout sources
28
21
uses : actions/checkout@v3
29
- - name : Download libextism.so
30
- uses : actions/download-artifact@v2
31
- with :
32
- name : libextism-so-artifact
33
- - name : Download libextism.h
34
- uses : actions/download-artifact@v2
35
- with :
36
- name : libextism-h-artifact
37
- - name : Move the files because download can't sudo
38
- run : |
39
- ls -lah ./
40
- sudo mv libextism.so /usr/local/lib/
41
- sudo mv extism.h /usr/local/include/
22
+ - uses : ./.github/actions/libextism
42
23
- name : Set up Java
43
24
uses : actions/setup-java@v3
44
25
with :
You can’t perform that action at this time.
0 commit comments