File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 dotnet pack src/Kapusch.FacebookApisForAndroidComponents/Kapusch.FacebookApisForAndroidComponents.csproj \
4949 -c Release \
5050 -o artifacts/nuget
51-
52- - name : Build Android sample
53- run : |
54- dotnet build samples/Kapusch.Facebook.Android.Sample/Kapusch.Facebook.Android.Sample.csproj -c Debug
55-
5651 - uses : actions/upload-artifact@v4
5752 with :
5853 name : nuget
Original file line number Diff line number Diff line change 1+ name : sample-android
2+
3+ on :
4+ workflow_dispatch :
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ build_android_sample :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - uses : actions/setup-dotnet@v4
16+ with :
17+ dotnet-version : " 10.0.x"
18+
19+ - uses : actions/setup-java@v4
20+ with :
21+ distribution : " microsoft"
22+ java-version : " 21"
23+
24+ - name : Setup Android SDK
25+ uses : android-actions/setup-android@v3
26+
27+ - name : Install Android workload
28+ run : |
29+ dotnet workload install android
30+
31+ - name : Cache NuGet
32+ uses : actions/cache@v4
33+ with :
34+ path : ~/.nuget/packages
35+ key : ${{ runner.os }}-nuget-${{ hashFiles('global.json', '**/*.csproj') }}
36+
37+ - name : Build Android wrapper
38+ run : |
39+ bash src/Kapusch.FacebookApisForAndroidComponents/Native/Android/build.sh
40+
41+ - name : Restore pinned Facebook AARs
42+ run : |
43+ bash src/Kapusch.FacebookApisForAndroidComponents/Native/Android/restore-facebook-aars.sh
44+
45+ - name : Build Android sample
46+ run : |
47+ dotnet build samples/Kapusch.Facebook.Android.Sample/Kapusch.Facebook.Android.Sample.csproj -c Debug
You can’t perform that action at this time.
0 commit comments