Skip to content

Commit

Permalink
Merge pull request #248 from FedericoPonzi/install-protoc
Browse files Browse the repository at this point in the history
Update CI to install protoc
  • Loading branch information
FedericoPonzi authored Nov 1, 2024
2 parents aa4da9c + eff48f4 commit 2217698
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:

test:
name: Test
needs: [style]
needs: [ style ]
runs-on: ubuntu-latest

strategy:
matrix:
build: [stable, beta, nightly]
build: [ stable, beta, nightly ]
include:
- build: beta
rust: beta
Expand All @@ -57,12 +57,16 @@ jobs:
profile: minimal
override: true

- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: Build debug
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }}

- name: Create /var/run/horust directory
run: sudo mkdir -p /var/run/horust && sudo chmod 777 /var/run/horust
- name: Test
uses: actions-rs/cargo@v1
with:
Expand All @@ -78,7 +82,7 @@ jobs:

# Publish latest and releases (e.g. tags with semver) on dockerhub.
docker-push-release-latest:
needs: [test]
needs: [ test ]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
steps:
Expand All @@ -94,7 +98,7 @@ jobs:
## This will create a new release in github/releases page. It will run only for tags with semver format.
create-release:
name: deploy
needs: [test]
needs: [ test ]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
strategy:
Expand All @@ -120,6 +124,9 @@ jobs:
override: true
target: ${{ matrix.target }}

- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: Build target
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 2217698

Please sign in to comment.