Skip to content

Commit

Permalink
Create build-android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
visioforge authored Oct 27, 2024
1 parent b1604ce commit 7d224f0
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/.github/workflows/build-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build Android
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
env:
Solution_Name_MB: "Media Blocks SDK/VisioForge.MediaBlocks.Demos.CS Android.sln"

Solution_Name_MP: "Media Player SDK X (crossplatform)/VisioForge.MediaPlayer.X.Demos.CS.Android.sln"

Solution_Name_VC: "Video Capture SDK X (crossplatform)/VisioForge.VideoCaptureX.Demos.CS Android.sln"

runs-on: windows-2022

steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
- name: Install workloads
run: dotnet workload install android

- name: Add msbuild to PATH
uses: microsoft/[email protected]

## Media Blocks

- name: Restore dependencies $env:Solution_Name_MB
run: dotnet restore $env:Solution_Name_MB

- name: Build app for release $env:Solution_Name_MB
run: msbuild $env:Solution_Name_MB -t:rebuild -verbosity:diag -property:Configuration=Release

## Media Player

- name: Restore dependencies $env:Solution_Name_MP
run: dotnet restore $env:Solution_Name_MP

- name: Build app for release $env:Solution_Name_MP
run: msbuild $env:Solution_Name_MP -t:rebuild -verbosity:diag -property:Configuration=Release

## Video Capture

- name: Restore dependencies $env:Solution_Name_VC
run: dotnet restore $env:Solution_Name_VC

- name: Build app for release $env:Solution_Name_VC
run: msbuild $env:Solution_Name_VC -t:rebuild -verbosity:diag -property:Configuration=Release

0 comments on commit 7d224f0

Please sign in to comment.