Skip to content

Commit 0574583

Browse files
authored
Merge pull request #32437 from smoogipoo/build-ios-tests
Build iOS tests project
2 parents 85ef743 + 44b4e04 commit 0574583

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ jobs:
136136
run: dotnet workload install ios --from-rollback-file https://raw.githubusercontent.com/ppy/osu-framework/refs/heads/master/workloads.json
137137

138138
- name: Build
139-
run: dotnet build -c Debug osu.iOS
139+
run: dotnet build -c Debug osu.iOS.slnf

osu.Game.Tests.iOS/osu.Game.Tests.iOS.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="..\osu.iOS.props" />
23
<PropertyGroup>
34
<OutputType>Exe</OutputType>
45
<TargetFramework>net8.0-ios</TargetFramework>
56
<SupportedOSPlatformVersion>13.4</SupportedOSPlatformVersion>
67
<RootNamespace>osu.Game.Tests</RootNamespace>
78
<AssemblyName>osu.Game.Tests.iOS</AssemblyName>
89
</PropertyGroup>
9-
<Import Project="..\osu.iOS.props" />
10+
<PropertyGroup>
11+
<NoWarn>$(NoWarn);CA2007</NoWarn>
12+
</PropertyGroup>
1013
<ItemGroup>
1114
<Compile Include="..\osu.Game.Tests\**\*.cs" Exclude="**\obj\**">
1215
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
1316
</Compile>
17+
<!-- TargetPath is relative to RootNamespace,
18+
and DllResourceStore is relative to AssemblyName. -->
19+
<EmbeddedResource Include="..\osu.Game.Tests\**\Resources\**\*">
20+
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
21+
<TargetPath>iOS\%(RecursiveDir)%(Filename)%(Extension)</TargetPath>
22+
</EmbeddedResource>
1423
</ItemGroup>
1524
<ItemGroup Label="Project References">
1625
<ProjectReference Include="..\osu.Game\osu.Game.csproj" />

0 commit comments

Comments
 (0)