Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2ce240

Browse files
author
zach
authored
ci: use new extism cli (#4)
1 parent2d40aef commite2ce240

File tree

2 files changed

+6
-42
lines changed

2 files changed

+6
-42
lines changed
Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
11
on:[workflow_call]
22

33
name:libextism
4-
description:Installs Extism runtime from git
54

65
runs:
76
using:composite
87
steps:
98
-uses:actions/checkout@v3
10-
-uses:actions-rs/toolchain@v1
119
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
1714
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

‎.github/workflows/ci.yaml‎

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@ on:
77
branches:[ main ]
88

99
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
1610
java:
1711
name:Java
1812
runs-on:${{ matrix.os }}
19-
needs:prepare
2013
strategy:
2114
matrix:
2215
os:[ubuntu-latest]
@@ -26,19 +19,7 @@ jobs:
2619
steps:
2720
-name:Checkout sources
2821
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
4223
-name:Set up Java
4324
uses:actions/setup-java@v3
4425
with:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp