Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI to install protoc #248

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading