Skip to content

Commit

Permalink
Android release check
Browse files Browse the repository at this point in the history
  • Loading branch information
SanttuRantanen committed Dec 6, 2024
1 parent 1d5c230 commit bad4e9c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/androidrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Android Release StreamrProxyClient

on:
release:
types: [published]

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
build-android:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- name: Install Dependencies
uses: ./.github/workflows/reusable/android-install
44 changes: 44 additions & 0 deletions .github/workflows/reusable/android-install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "cached install"
description: "install dependencies, build and cache result, or restore from cache if present"

runs:
using: "composite"
steps:
- name: cache homedir
id: cache-homedir
uses: actions/cache/restore@v4
with:
key: ${{ runner.arch }}-${{ runner.os }}-cache-homedir1-${{ hashFiles('./vcpkg.json') }}
path: |
~/.cache/vcpkg/archives
- name: cache vcpkg installed
id: cache-vcpkg-installed
uses: actions/cache/restore@v4
with:
key: ${{ runner.arch }}-${{ runner.os }}-cache-vcpkg-installed1-${{ hashFiles('./vcpkg.json') }}
path: |
./build/vcpkg_installed
- name: install-prerequisities
run:
source install-prerequisities.sh
shell: bash
- name: install
run: |
./install.sh --prod ${ARCHFLAGS:-} || (echo heippa && cat /Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel/config-arm64-android-out.log && exit 1)
shell: bash
- name: cache homedir save
id: cache-homedir-save
if: always()
uses: actions/cache/save@v4
with:
key: ${{ runner.arch }}-${{ runner.os }}-cache-homedir1-${{ hashFiles('./vcpkg.json') }}
path: |
~/.cache/vcpkg/archives
- name: cache vcpkg installed save
id: cache-vcpkg-installed-save
if: always()
uses: actions/cache/save@v4
with:
key: ${{ runner.arch }}-${{ runner.os }}-cache-vcpkg-installed1-${{ hashFiles('./vcpkg.json') }}
path: |
./build/vcpkg_installed

0 comments on commit bad4e9c

Please sign in to comment.