Skip to content

fix: rustfmt and Cargo.lock #3

fix: rustfmt and Cargo.lock

fix: rustfmt and Cargo.lock #3

Workflow file for this run

name: Build (stremio-core-kotlin)
on:
push:
branches:
- '**'
# Stops the running workflow of previous pushes
concurrency:
group: ${{ github.ref }}-android
cancel-in-progress: true
env:
# For the confusing protoc versioning check out these docs:
# https://protobuf.dev/support/version-support/
# v3.26.x, where `.x` is a wildcard
#
# For stremio-core-android we use version 3.21
# Check build.gradle.kts
PROTOC_VERSION: '21.x'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# add protoc because of stremio-core-csharp
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "${{ env.PROTOC_VERSION }}"
- name: Rust setup (1.70.0)
uses: dtolnay/[email protected]
with:
components: rustfmt, clippy
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: Build code
run: cargo build -p stremio-core-kotlin
- name: Lint code format
run: cargo fmt --all -- --check
- name: Lint code
run: cargo clippy --all -- -D warnings