Skip to content

Commit

Permalink
android build
Browse files Browse the repository at this point in the history
  • Loading branch information
hyp committed May 17, 2024
1 parent a37ec70 commit d73e871
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .github/workflows/bcny-firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:
jobs:
windows:
runs-on: windows-latest
if: false

strategy:
fail-fast: false
fail-fast: true
matrix:
include:
- arch: 'amd64'
Expand Down Expand Up @@ -302,3 +303,41 @@ jobs:
$pkgs = Get-ChildItem -Path com.google.firebase.windows.${{ matrix.arch }}.*.nupkg
nuget push $pkgs[0].Name -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate
shell: pwsh

android:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- arch: 'arm64-v8a'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
path: ${{ github.workspace }}/SourceCache/firebase-cpp-sdk
ref: refs/heads/compnerd/swift
repository: thebrowsercompany/firebase-cpp-sdk

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Download Android NDK
run: |
NDK_VERSION="21.4.7075529"
NDK_FILE="android-ndk-r21e-linux-x86_64.zip"
curl -L -o "${NDK_FILE}" "https://dl.google.com/android/repository/${NDK_FILE}"
unzip "${NDK_FILE}"
rm "${NDK_FILE}"
echo "NDK_ROOT=$(pwd)/android-ndk-r${NDK_VERSION}" >> $GITHUB_ENV
- name: test
run:
ls $NDK_ROOT
echo $NDK_ROOT
ls ${{ github.workspace }}/SourceCache/firebase-cpp-sdk


0 comments on commit d73e871

Please sign in to comment.