fix: readme #243
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
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-android | |
- name: Lint code format | |
run: cargo fmt --all -- --check | |
- name: Lint code | |
run: cargo clippy --all -- -D warnings |