Skip to content

ci: use gh actions new native arm architectures for runners #105

ci: use gh actions new native arm architectures for runners

ci: use gh actions new native arm architectures for runners #105

Workflow file for this run

name: Rust CI - Cargo check
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
check:
name: Check
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
env:
SQLX_OFFLINE: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Rust setup
run: rustup toolchain install stable --profile minimal
- name: Setup cache
uses: actions/cache@v4
with:
save-always: true
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Run cargo check
run: cargo check