From d6ee7044ae17cfcdbbdcc137f730a47189341698 Mon Sep 17 00:00:00 2001 From: Liam Aharon Date: Thu, 2 May 2024 22:41:22 +1000 Subject: [PATCH] ci: update protoc (#85) --- .github/workflows/build-release-binaries.yaml | 78 +++++++++---------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/build-release-binaries.yaml b/.github/workflows/build-release-binaries.yaml index 96fef5704f5..d0d9bbd1692 100644 --- a/.github/workflows/build-release-binaries.yaml +++ b/.github/workflows/build-release-binaries.yaml @@ -9,48 +9,48 @@ jobs: build_and_upload: strategy: matrix: - platform: + platform: - { os: ubuntu-latest, target: x86_64-unknown-linux-musl } - { os: macos-latest, target: x86_64-apple-darwin } runs-on: ${{ matrix.platform.os }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install Protoc - uses: arduino/setup-protoc@v1 - with: - version: "3.6.1" - - - name: Setup Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - - name: Add musl target - if: matrix.platform.os == 'ubuntu-latest' - run: rustup target add x86_64-unknown-linux-musl - - - name: Install deps for musl build - if: matrix.platform.os == 'ubuntu-latest' - run: | - sudo apt-get update - sudo apt-get install -y musl-tools clang build-essential curl llvm-dev libclang-dev linux-headers-generic libsnappy-dev liblz4-dev libzstd-dev libgflags-dev zlib1g-dev libbz2-dev - sudo ln -s /usr/bin/g++ /usr/bin/musl-g++ - - - name: Build Rust project - run: cargo build --release --target ${{ matrix.platform.target }} - - - name: Upload Binary to Release - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./target/${{ matrix.platform.target }}/release/try-runtime - asset_name: try-runtime-${{ matrix.platform.target }} - asset_content_type: application/octet-stream - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Protoc + uses: arduino/setup-protoc@v3 + with: + version: "23.2" + + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Add musl target + if: matrix.platform.os == 'ubuntu-latest' + run: rustup target add x86_64-unknown-linux-musl + + - name: Install deps for musl build + if: matrix.platform.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y musl-tools clang build-essential curl llvm-dev libclang-dev linux-headers-generic libsnappy-dev liblz4-dev libzstd-dev libgflags-dev zlib1g-dev libbz2-dev + sudo ln -s /usr/bin/g++ /usr/bin/musl-g++ + + - name: Build Rust project + run: cargo build --release --target ${{ matrix.platform.target }} + + - name: Upload Binary to Release + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./target/${{ matrix.platform.target }}/release/try-runtime + asset_name: try-runtime-${{ matrix.platform.target }} + asset_content_type: application/octet-stream + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}