Skip to content

Commit

Permalink
ci: fix paths in publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Sep 25, 2024
1 parent 0abc74f commit 3eb4e49
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,36 +54,36 @@ jobs:
include:
- name: linux
os: ubuntu-latest
path: target/x86_64-unknown-linux-gnu/release/extism-py
path: bin/target/x86_64-unknown-linux-gnu/release/extism-py
asset_name: extism-py-x86_64-linux-${{ github.event.release.tag_name }}
shasum_cmd: sha256sum
target: x86_64-unknown-linux-gnu
- name: linux-arm64
os: ubuntu-latest
path: target/aarch64-unknown-linux-gnu/release/extism-py
path: bin/target/aarch64-unknown-linux-gnu/release/extism-py
asset_name: extism-py-aarch64-linux-${{ github.event.release.tag_name }}
shasum_cmd: sha256sum
target: aarch64-unknown-linux-gnu
- name: macos
os: macos-latest
path: target/x86_64-apple-darwin/release/extism-py
path: bin/target/x86_64-apple-darwin/release/extism-py
asset_name: extism-py-x86_64-macos-${{ github.event.release.tag_name }}
shasum_cmd: shasum -a 256
target: x86_64-apple-darwin
- name: macos-arm64
os: macos-latest
path: target/aarch64-apple-darwin/release/extism-py
path: bin/target/aarch64-apple-darwin/release/extism-py
asset_name: extism-py-aarch64-macos-${{ github.event.release.tag_name }}
shasum_cmd: shasum -a 256
target: aarch64-apple-darwin
# - name: windows
# os: windows-latest
# path: target\x86_64-pc-windows-msvc\release\extism-py.exe
# path: bin\target\x86_64-pc-windows-msvc\release\extism-py.exe
# asset_name: extism-py-x86_64-windows-${{ github.event.release.tag_name }}
# target: x86_64-pc-windows-msvc
# - name: windows-arm64
# os: windows-latest
# path: target\aarch64-pc-windows-msvc\release\extism-py.exe
# path: bin\target\aarch64-pc-windows-msvc\release\extism-py.exe
# asset_name: extism-py-aarch64-windows-${{ github.event.release.tag_name }}
# target: aarch64-pc-windows-msvc

Expand All @@ -95,10 +95,6 @@ jobs:
name: engine
path: bin

- name: ls
run: ls -R
working-directory: bin

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -122,7 +118,7 @@ jobs:
- name: Build CLI ${{ matrix.os }}
env:
EXTISM_ENGINE_PATH: core.wasm
run: cargo build --release --target ${{ matrix.target }} --package extism-py
run: cd bin && cargo build --release --target ${{ matrix.target }} --package extism-py

- name: Archive assets
run: gzip -k -f ${{ matrix.path }} && mv ${{ matrix.path }}.gz ${{ matrix.asset_name }}.gz
Expand Down

0 comments on commit 3eb4e49

Please sign in to comment.