sample-android #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: sample-android | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build_android_sample: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: "microsoft" | |
| java-version: "21" | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Install Android workload | |
| run: | | |
| dotnet workload install android | |
| - name: Cache NuGet | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('global.json', '**/*.csproj') }} | |
| - name: Build Android wrapper | |
| run: | | |
| bash src/Kapusch.FacebookApisForAndroidComponents/Native/Android/build.sh | |
| - name: Restore pinned Facebook AARs | |
| run: | | |
| bash src/Kapusch.FacebookApisForAndroidComponents/Native/Android/restore-facebook-aars.sh | |
| - name: Build Android sample | |
| run: | | |
| dotnet build samples/Kapusch.Facebook.Android.Sample/Kapusch.Facebook.Android.Sample.csproj -c Debug |