mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-09 17:46:52 +00:00
feat(ci): remove protoc
installation where possible
We only retain it for the test job which runs `cargo semver-checks` which may need to build the rustdoc for the baseline version which still requires `protoc` to be installed until we make the next round of releases. Pull-Request: #3592.
This commit is contained in:
parent
b11e53fe62
commit
ab35c55fc9
6
.github/workflows/cache-factory.yml
vendored
6
.github/workflows/cache-factory.yml
vendored
@ -33,9 +33,6 @@ jobs:
|
||||
matrix:
|
||||
rust: ${{ fromJSON(needs.gather_msrv_versions.outputs.versions) }}
|
||||
steps:
|
||||
- name: Install Protoc
|
||||
run: sudo apt-get install protobuf-compiler
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
@ -55,9 +52,6 @@ jobs:
|
||||
make_stable_rust_cache:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Protoc
|
||||
run: sudo apt-get install protobuf-compiler
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
|
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -96,16 +96,6 @@ jobs:
|
||||
os: windows-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Install Protoc
|
||||
if: ${{ matrix.os != 'ubuntu-latest' }}
|
||||
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Protoc
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
run: sudo apt-get install protobuf-compiler
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
@ -130,9 +120,6 @@ jobs:
|
||||
- features: "mdns tcp dns tokio"
|
||||
- features: "mdns tcp dns async-std"
|
||||
steps:
|
||||
- name: Install Protoc
|
||||
run: sudo apt-get install protobuf-compiler
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
@ -150,9 +137,6 @@ jobs:
|
||||
name: Check rustdoc intra-doc links
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Protoc
|
||||
run: sudo apt-get install protobuf-compiler
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
@ -176,9 +160,6 @@ jobs:
|
||||
beta
|
||||
]
|
||||
steps:
|
||||
- name: Install Protoc
|
||||
run: sudo apt-get install protobuf-compiler
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
@ -199,9 +180,6 @@ jobs:
|
||||
name: IPFS Integration tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Protoc
|
||||
run: sudo apt-get install protobuf-compiler
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
|
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
@ -9,10 +9,6 @@ jobs:
|
||||
name: Build documentation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Protoc
|
||||
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install nightly toolchain
|
||||
|
@ -1,11 +1,6 @@
|
||||
# syntax=docker/dockerfile:1.5-labs
|
||||
FROM rust:1.67.0
|
||||
|
||||
# Setup protoc. TODO this breaks reproducibility and uses an old version of protoc.
|
||||
# In the future protobuf generated files will be checked in, so we can remove this
|
||||
WORKDIR /protoc-setup
|
||||
RUN apt-get update && apt-get install -y cmake
|
||||
|
||||
# Run with access to the target cache to speed up builds
|
||||
WORKDIR /workspace
|
||||
ADD . .
|
||||
|
Loading…
x
Reference in New Issue
Block a user