Skip to content

Commit

Permalink
ci: improve build by setting concurrency and protoc version + add dep…
Browse files Browse the repository at this point in the history
…endabot.yml for outdated deps.

Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Aug 29, 2024
1 parent b047db3 commit 87ed5f3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
# Check for outdated actions
updates:
- package-ecosystem: "github-actions"
directory: "/"
# Check for updates every Monday
schedule:
interval: "weekly"
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ on:
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
Expand All @@ -15,6 +29,8 @@ jobs:
# add protoc because of stremio-core-csharp
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "${{ env.PROTOC_VERSION }}"

- name: Rust setup (1.67.1)
uses: dtolnay/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit 87ed5f3

Please sign in to comment.