diff --git a/.github/workflows/cross-openssl.yml b/.github/workflows/cross-openssl.yml index 4e958ae..078e0cd 100644 --- a/.github/workflows/cross-openssl.yml +++ b/.github/workflows/cross-openssl.yml @@ -81,6 +81,7 @@ jobs: file: ./cross-openssl/Dockerfile pull: true push: ${{ github.event_name != 'pull_request' }} + load: ${{ github.event_name == 'pull_request' }} tags: ghcr.io/cargo-prebuilt/cross-openssl:${{ matrix.target }} labels: | tech.harmless.cargo-prebuilt.name="cross-openssl" @@ -96,3 +97,14 @@ jobs: BUILD_COMBO=${{ matrix.build_combo }} platforms: linux/amd64 builder: ${{ steps.buildx.outputs.name }} + - name: Install cargo-prebuilt + uses: cargo-prebuilt/cargo-prebuilt-action@v3 + with: + pkgs: cross + - name: Test + working-directory: ./cross-openssl + run: | + set -euxo pipefail + git clone --depth=1 https://github.com/cargo-prebuilt/cargo-prebuilt.git + cd cargo-prebuilt + cross build --target ${{ matrix.target }} --no-default-features --features default-native diff --git a/cross-openssl/Dockerfile b/cross-openssl/Dockerfile index 4998eb0..f5759f6 100644 --- a/cross-openssl/Dockerfile +++ b/cross-openssl/Dockerfile @@ -13,12 +13,12 @@ RUN --mount=type=bind,source=openssl,target=/openssl,rw <