Skip to content

Commit d6ee704

Browse files
authored
ci: update protoc (#85)
1 parent 9210f83 commit d6ee704

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

.github/workflows/build-release-binaries.yaml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,48 @@ jobs:
99
build_and_upload:
1010
strategy:
1111
matrix:
12-
platform:
12+
platform:
1313
- { os: ubuntu-latest, target: x86_64-unknown-linux-musl }
1414
- { os: macos-latest, target: x86_64-apple-darwin }
1515

1616
runs-on: ${{ matrix.platform.os }}
1717

1818
steps:
19-
- name: Checkout code
20-
uses: actions/checkout@v4
21-
22-
- name: Install Protoc
23-
uses: arduino/setup-protoc@v1
24-
with:
25-
version: "3.6.1"
26-
27-
- name: Setup Rust
28-
uses: actions-rs/toolchain@v1
29-
with:
30-
profile: minimal
31-
toolchain: stable
32-
override: true
33-
34-
- name: Add musl target
35-
if: matrix.platform.os == 'ubuntu-latest'
36-
run: rustup target add x86_64-unknown-linux-musl
37-
38-
- name: Install deps for musl build
39-
if: matrix.platform.os == 'ubuntu-latest'
40-
run: |
41-
sudo apt-get update
42-
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
43-
sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
44-
45-
- name: Build Rust project
46-
run: cargo build --release --target ${{ matrix.platform.target }}
47-
48-
- name: Upload Binary to Release
49-
uses: actions/upload-release-asset@v1
50-
with:
51-
upload_url: ${{ github.event.release.upload_url }}
52-
asset_path: ./target/${{ matrix.platform.target }}/release/try-runtime
53-
asset_name: try-runtime-${{ matrix.platform.target }}
54-
asset_content_type: application/octet-stream
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Install Protoc
23+
uses: arduino/setup-protoc@v3
24+
with:
25+
version: "23.2"
26+
27+
- name: Setup Rust
28+
uses: actions-rs/toolchain@v1
29+
with:
30+
profile: minimal
31+
toolchain: stable
32+
override: true
33+
34+
- name: Add musl target
35+
if: matrix.platform.os == 'ubuntu-latest'
36+
run: rustup target add x86_64-unknown-linux-musl
37+
38+
- name: Install deps for musl build
39+
if: matrix.platform.os == 'ubuntu-latest'
40+
run: |
41+
sudo apt-get update
42+
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
43+
sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
44+
45+
- name: Build Rust project
46+
run: cargo build --release --target ${{ matrix.platform.target }}
47+
48+
- name: Upload Binary to Release
49+
uses: actions/upload-release-asset@v1
50+
with:
51+
upload_url: ${{ github.event.release.upload_url }}
52+
asset_path: ./target/${{ matrix.platform.target }}/release/try-runtime
53+
asset_name: try-runtime-${{ matrix.platform.target }}
54+
asset_content_type: application/octet-stream
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)