Skip to content

Merge branch 'release/1.19.0' #381

Merge branch 'release/1.19.0'

Merge branch 'release/1.19.0' #381

Workflow file for this run

name: build
on:
push:
branches:
- main
- release/*
pull_request:
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: microsoft/setup-msbuild@v2
if: matrix.os == 'windows-latest'
# Needed for Android SDK setup step
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Android SDK
uses: android-actions/setup-android@07976c6290703d34c16d382cb36445f98bb43b1f # v3.2.0
- name: Install Android workload (macOS)
if: matrix.os == 'macos-latest'
run: sudo dotnet workload install maui-android
- name: Install Android workload (Windows/Linux)
if: matrix.os != 'macos-latest'
run: dotnet workload install maui-android
- name: Run batch build script
if: matrix.os == 'windows-latest'
shell: cmd
run: build.cmd
- name: Run bash build script
if: matrix.os != 'windows-latest'
run: ./build.sh
- name: Publish coverage report
uses: codecov/codecov-action@v3
- name: Archive Artifacts
uses: actions/upload-artifact@v3
if: matrix.os == 'macos-latest'
with:
name: ${{ github.sha }}
if-no-files-found: error
path: |
${{ github.workspace }}/src/SymbolCollector.Console/*.zip
${{ github.workspace }}/src/SymbolCollector.Android/bin/Release/**/publish/*Signed.apk
${{ github.workspace }}/src/SymbolCollector.Android/obj/Release/**/*.so
${{ github.workspace }}/src/SymbolCollector.Server/publish/*.zip