From b083a8a621343dad4baede1f5907e332bfa04115 Mon Sep 17 00:00:00 2001 From: Kendall Weihe Date: Fri, 5 Jul 2024 15:00:20 -0400 Subject: [PATCH] Use alpine container for alpine build job --- .github/workflows/dylib.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dylib.yml b/.github/workflows/dylib.yml index 972027d1..3bbaf32c 100644 --- a/.github/workflows/dylib.yml +++ b/.github/workflows/dylib.yml @@ -60,16 +60,17 @@ jobs: build-alpine: runs-on: ubuntu-latest name: Build on Alpine (AMD64) + container: alpine:latest steps: - uses: actions/checkout@v2 - name: Install Dependencies run: | - sudo apt-get update - sudo apt-get install -y musl-tools + apk add --no-cache musl-dev build-base - name: Install Rust - run: rustup toolchain install stable - - name: Set Target - run: rustup target add x86_64-unknown-linux-musl + run: | + curl https://sh.rustup.rs -sSf | sh -s -- -y + source $HOME/.cargo/env + rustup target add x86_64-unknown-linux-musl - name: Build run: cargo build --target x86_64-unknown-linux-musl -p tbdex_uniffi --release - name: Upload .so