-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (40 loc) · 1.11 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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