Skip to content

Commit

Permalink
Install rust-cache/protoc for GH-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
weezy20 committed Feb 24, 2024
1 parent ad9026d commit 1883660
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Free up space on runner
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Install protoc
run: |
sudo apt-get install -y protobuf-compiler
protoc --version
- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true

- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

0 comments on commit 1883660

Please sign in to comment.