diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 567cf8b..2bed5f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,20 +38,6 @@ jobs: static-dll-artifact: '' pc-in: 'extism.pc.in' static-pc-in: 'extism-static.pc.in' - - os: 'ubuntu' - target: 'aarch64-linux-android' - artifact: 'libextism.so' - static-artifact: 'libextism.a' - static-dll-artifact: '' - pc-in: 'extism.pc.in' - static-pc-in: 'extism-static.pc.in' - - os: 'ubuntu' - target: 'x86_64-linux-android' - artifact: 'libextism.so' - static-artifact: 'libextism.a' - static-dll-artifact: '' - pc-in: 'extism.pc.in' - static-pc-in: 'extism-static.pc.in' - os: 'ubuntu' target: 'aarch64-unknown-linux-gnu' artifact: 'libextism.so' @@ -112,13 +98,11 @@ jobs: pyproject="$(cat extism-maturin/pyproject.toml)" <<<"$pyproject" >extism-maturin/pyproject.toml sed -e 's/^version = "0.0.0.replaced-by-ci"/version = "'"$version"'"/g' - - name: Install Rust - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: stable - profile: minimal - override: true target: ${{ matrix.target }} + override: true + toolchain: stable - uses: Swatinem/rust-cache@v2 with: @@ -126,20 +110,16 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} cache-on-failure: "true" - - name: Install libunwind - if: ${{ matrix.target == 'x86_64-linux-android' }} - run: sudo apt install libunwind-dev - - - name: Install libunwind - if: ${{ matrix.target == 'aarch64-linux-android' }} - run: sudo apt install libunwind-dev + - name: Build Target (${{ matrix.os }} ${{ matrix.target }}) + if: ${{ matrix.os != 'windows' }} + run: | + cargo install cross + cross build --release --target ${{ matrix.target }} -p ${{ env.RUNTIME_CRATE }} - name: Build Target (${{ matrix.os }} ${{ matrix.target }}) - uses: actions-rs/cargo@v1 - with: - use-cross: ${{ matrix.os != 'windows' }} - command: build - args: --release --target ${{ matrix.target }} -p ${{ env.RUNTIME_CRATE }} + if: ${{ matrix.os == 'windows' }} + run: | + cargo build --release --target ${{ matrix.target }} -p ${{ env.RUNTIME_CRATE }} - uses: actions/setup-python@v4 with: diff --git a/README.md b/README.md index b7ac763..3ddbf0f 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,22 @@ function linking, and more. Extism users build: - web applications - & much more... +# Supported Targets + +We currently provide releases for the following targets: + +- aarch64-apple-darwin +- aarch64-unknown-linux-gnu +- aarch64-unknown-linux-musl +- x86_64-apple-darwin +- x86_64-pc-windows-gnu +- x86_64-pc-windows-msvc +- x86_64-unknown-linux-gnu +- x86_64-unknown-linux-musl + +For Android we suggest taking a look at the [Chicory SDK](https://github.com/extism/chicory-sdk) for a pure Java +Extism runtime. + # Run WebAssembly In Your App Pick a SDK to import into your program, and refer to the documentation to get