-
-
Notifications
You must be signed in to change notification settings - Fork 8
67 lines (54 loc) · 1.83 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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