Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 5 additions & 34 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches:
- main
- v*
tags:
- v*

pull_request:

Expand All @@ -15,16 +12,19 @@ on:
- trigger_build

workflow_dispatch:
workflow_call:

schedule:
- cron: '0 0 * * 1'

permissions:
contents: read

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

# build natively on desktop
desktop:
strategy:
Expand Down Expand Up @@ -212,32 +212,3 @@ jobs:
ndk: ${{ matrix.ndk }}
cmake: ${{ matrix.cmake }}
script: ./scripts/android/run_instrumented_tests.sh

release:
needs: [desktop, android-linux, android-osx]
if: |
github.repository_owner == 'roc-streaming' &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v')

name: publish
runs-on: ubuntu-24.04

env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Choose roc-toolkit revision
run: echo ROC_REVISION=$(scripts/roc_revision.py) >> $GITHUB_ENV

- name: Publish
run: scripts/android_docker.sh publish
25 changes: 0 additions & 25 deletions .github/workflows/detect_conflicts.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/pr_closed.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/pr_opened.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/pr_ready.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/pr_reviewed.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/pr_wip.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "release"

on:
push:
tags:
- v*

workflow_dispatch:

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}{{ github.event.pull_request.number || github.ref }}

jobs:
build:
uses: ./.github/workflows/build.yml

release:
needs: [build]

runs-on: ubuntu-24.04
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Choose roc-toolkit revision
run: echo ROC_REVISION=$(scripts/roc_revision.py) >> $GITHUB_ENV

- name: Publish
run: scripts/android_docker.sh publish
Loading