Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
tanderson-ld committed Nov 16, 2023
1 parent acd37fe commit 9b70884
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Run CI
on:
push:
branches: [ main ]
branches: [ ta/sc-222947/maui-support ]
paths-ignore:
- '**.md' #Do not need to run CI for markdown changes.
pull_request:
branches: [ main ]
branches: [ ta/sc-222947/maui-support ]
paths-ignore:
- '**.md'

Expand All @@ -21,25 +21,24 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: 'ta/sc-222947/maui-support'
fetch-depth: 0 #If you only need the current version keep this.

- name: Setup dotnet ${{ matrix.dotnet-version }} build tools
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Install MAUI Workload
run: dotnet workload install maui-android maui-ios maui-windows maui-maccatalyst --ignore-failed-sources
# - name: Install MAUI Workload
# run: dotnet workload install maui-android maui-ios maui-windows maui-maccatalyst --ignore-failed-sources

- name: Restore Dependencies
run: dotnet restore src/LaunchDarkly.ClientSdk/LaunchDarkly.ClientSdk.csproj
# - name: Restore Dependencies
# run: dotnet restore src/LaunchDarkly.ClientSdk/LaunchDarkly.ClientSdk.csproj

# - name: Build for Net7
# run: dotnet msbuild /p:Configuration=debug /p:TargetFramework=net7.0 src/LaunchDarkly.ClientSdk/LaunchDarkly.ClientSdk.csproj

- name: Build for Net7-android
run: dotnet msbuild /p:Configuration=debug /p:TargetFramework=net7.0-android src/LaunchDarkly.ClientSdk/LaunchDarkly.ClientSdk.csproj
# - name: Build for Net7-android
# run: dotnet msbuild /p:Configuration=debug /p:TargetFramework=net7.0-android src/LaunchDarkly.ClientSdk/LaunchDarkly.ClientSdk.csproj

# - name: Build for Net7-ios
# run: dotnet msbuild /p:Configuration=debug /p:TargetFramework=net7.0-ios src/LaunchDarkly.ClientSdk/LaunchDarkly.ClientSdk.csproj
Expand All @@ -66,9 +65,26 @@ jobs:
# curl -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/main/downloader/run.sh | VERSION=v2 PARAMS="-url http://localhost:8000 -debug -stop-service-at-end \
# -junit /tmp/circle-reports/contract-tests-junit.xml" sh

- name: Build Android Test Project
run: dotnet msbuild /restore /p:Configuration=Debug /t:SignAndroidPackage \
tests/LaunchDarkly.ClientSdk.Android.Tests/LaunchDarkly.ClientSdk.Android.Tests.csproj
# - name: Build Android Test App
# run: |
# dotnet msbuild /restore /p:Configuration=Debug /t:SignAndroidPackage \
# tests/LaunchDarkly.ClientSdk.Android.Tests/LaunchDarkly.ClientSdk.Android.Tests.csproj

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Android Manager
uses: android-actions/setup-android@v3

- name: Run Android Test App on Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 27
script: |
adb install tests/LaunchDarkly.ClientSdk.Android.Tests/bin/Debug/com.companyname.LaunchDarkly.ClientSdk.Android.Tests-Signed.apk
# TODO: update build commands to not use msbuild if possible
# TODO: make teraform PR to get repo access to ARN. Also need to update the github-sdk-release role to get access to S3 blobs from .ldrelease/secrets.properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
conditional compilation, rather than by changing these includes; when we used
to use individual file links, it was too easy to forget to update them.
-->
<Compile Include="..\..\tests\LaunchDarkly.ClientSdk.Tests\**\*.cs" Exclude="..\..\tests\LaunchDarkly.ClientSdk.Tests\bin\**\*.cs;..\..\tests\LaunchDarkly.ClientSdk.Tests\obj\**\*.cs" />
<Compile Include="..\LaunchDarkly.ClientSdk.Tests\**\*.cs" Exclude="..\LaunchDarkly.ClientSdk.Tests\bin\**\*.cs;..\LaunchDarkly.ClientSdk.Tests\obj\**\*.cs" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 9b70884

Please sign in to comment.