From c0991e3abcd7826c586bfc96f700315abb9d11a6 Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 21 Sep 2023 13:39:11 -0700 Subject: [PATCH] ci: use new extism cli --- .github/actions/libextism/action.yml | 15 +++++++++++++++ .github/workflows/ci.yml | 25 +------------------------ 2 files changed, 16 insertions(+), 24 deletions(-) create mode 100644 .github/actions/libextism/action.yml diff --git a/.github/actions/libextism/action.yml b/.github/actions/libextism/action.yml new file mode 100644 index 0000000..cd36dc2 --- /dev/null +++ b/.github/actions/libextism/action.yml @@ -0,0 +1,15 @@ +on: [workflow_call] + +name: libextism + +runs: + using: composite + steps: + - uses: actions/checkout@v3 + with: + repository: extism/cli + path: .extism-cli + - uses: ./.extism-cli/.github/actions/extism-cli + - name: Install + shell: bash + run: sudo extism lib install --version git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4a6776..91a5e60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: - stable steps: - uses: actions/checkout@v3 + - uses: .github/actions/libextism - name: Install Rust uses: actions-rs/toolchain@v1 @@ -21,30 +22,6 @@ jobs: - name: Install wasm32 target run: rustup target add wasm32-unknown-unknown - - name: Setup Python env - uses: actions/setup-python@v4 - with: - python-version: "3.9" - check-latest: true - - - name: Install Poetry - uses: snok/install-poetry@v1 - - - name: Checkout extism/cli - uses: actions/checkout@v3 - with: - repository: extism/cli - path: cli - - - name: Install Extism & CLI - run: | - pushd cli - pip3 install cffi - pip3 install . - popd - - extism install git - - name: Build plugins run: make -B plugins