Skip to content

Commit

Permalink
ci: rust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat committed Sep 29, 2023
1 parent bdfd547 commit 9d53a31
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/rs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: Install dependencies (Ubuntu)
working-directory: ./scripts
run: |
./install_deps_ubuntu.sh
if: matrix.os == 'ubuntu-20.04'

- name: Download dependencies (proto)
run: |
source ./bootstrap_venv.sh
- name: Install Rust
shell: bash
run: curl https://sh.rustup.rs -sSf | sh -s -- -y

- name: Compile (rust)
run: |
source venv/bin/activate
cargo build

0 comments on commit 9d53a31

Please sign in to comment.