Skip to content

Commit 95010b0

Browse files
committed
Add envvar CI_DONT_TARGET_ANDROID=1 to fix CI build without android workload
1 parent db3993e commit 95010b0

5 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
name: Build only (Desktop)
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 60
16+
env:
17+
CI_DONT_TARGET_ANDROID: 1
1618
steps:
1719
- name: Checkout
1820
uses: actions/checkout@v4
@@ -54,6 +56,8 @@ jobs:
5456
name: Build only (iOS)
5557
runs-on: macos-15
5658
timeout-minutes: 60
59+
env:
60+
CI_DONT_TARGET_ANDROID: 1
5761
steps:
5862
- name: Checkout
5963
uses: actions/checkout@v4

SDL3-CS/SDL3-CS.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
<PropertyGroup>
44
<RootNamespace>SDL</RootNamespace>
5-
<TargetFrameworks>net8.0;net8.0-android</TargetFrameworks>
5+
<TargetFrameworks Condition=" '$(CI_DONT_TARGET_ANDROID)' != '1' ">net8.0;net8.0-android</TargetFrameworks>
6+
<TargetFramework Condition=" '$(CI_DONT_TARGET_ANDROID)' == '1' ">net8.0</TargetFramework>
67
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
78
<Nullable>enable</Nullable>
89
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

SDL3_image-CS/SDL3_image-CS.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net8.0-android</TargetFrameworks>
4+
<TargetFrameworks Condition=" '$(CI_DONT_TARGET_ANDROID)' != '1' ">net8.0;net8.0-android</TargetFrameworks>
5+
<TargetFramework Condition=" '$(CI_DONT_TARGET_ANDROID)' == '1' ">net8.0</TargetFramework>
56
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
67
<RootNamespace>SDL</RootNamespace>
78
<Nullable>enable</Nullable>

SDL3_mixer-CS/SDL3_mixer-CS.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net8.0-android</TargetFrameworks>
4+
<TargetFrameworks Condition=" '$(CI_DONT_TARGET_ANDROID)' != '1' ">net8.0;net8.0-android</TargetFrameworks>
5+
<TargetFramework Condition=" '$(CI_DONT_TARGET_ANDROID)' == '1' ">net8.0</TargetFramework>
56
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
67
<RootNamespace>SDL</RootNamespace>
78
<Nullable>enable</Nullable>

SDL3_ttf-CS/SDL3_ttf-CS.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net8.0-android</TargetFrameworks>
4+
<TargetFrameworks Condition=" '$(CI_DONT_TARGET_ANDROID)' != '1' ">net8.0;net8.0-android</TargetFrameworks>
5+
<TargetFramework Condition=" '$(CI_DONT_TARGET_ANDROID)' == '1' ">net8.0</TargetFramework>
56
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
67
<RootNamespace>SDL</RootNamespace>
78
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)