Skip to content

Commit

Permalink
move android workload to explicit opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Jan 13, 2023
1 parent 54da2fd commit 0be6b23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/codequality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ jobs:
dotnet-version: "6.0.x"

- name: Restore Tools
run: |
sudo dotnet workload restore
dotnet tool restore
run: dotnet tool restore

- name: Restore Packages
run: dotnet restore
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
dotnet restore
- name: Build
run: dotnet build -c Release -v normal -p:Version=${{ github.ref_name }}
run: dotnet build -c Release -v normal -p:EnableAndroid=true -p:Version=${{ github.ref_name }}

- name: Pack (Beta)
run: dotnet pack -c Release --include-symbols --no-build -v normal -o . -p:PackageVersion=${{ github.ref_name }}-beta
run: dotnet pack -c Release --include-symbols --no-build -v normal -o . -p:EnableAndroid=true -p:PackageVersion=${{ github.ref_name }}-beta
if: "github.event.release.prerelease"

- name: Pack (Stable)
run: dotnet pack -c Release --include-symbols --no-build -v normal -o . -p:PackageVersion=${{ github.ref_name }}
run: dotnet pack -c Release --include-symbols --no-build -v normal -o . -p:EnableAndroid=true -p:PackageVersion=${{ github.ref_name }}
if: "!github.event.release.prerelease"

- name: Publish
Expand Down
2 changes: 1 addition & 1 deletion src/DragonFruit.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$(SolutionDir)res\DragonFruit.Data.props" />

<PropertyGroup>
<TargetFrameworks>$(TargetFrameworks);net6.0-android</TargetFrameworks>
<TargetFrameworks Condition="'$(EnableAndroid)' == 'true'">$(TargetFrameworks);net6.0-android</TargetFrameworks>

<PackageId>DragonFruit.Data</PackageId>
<Description>A web requests framework for .NET that powers the DragonFruit APIs</Description>
Expand Down

0 comments on commit 0be6b23

Please sign in to comment.