mirror of
https://github.com/osukey/osukey.git
synced 2025-05-12 17:17:31 +09:00
Merge branch 'master' into update-beatmap-set-status-pill-appearance
This commit is contained in:
commit
5a03e1736e
42
.github/workflows/ci.yml
vendored
42
.github/workflows/ci.yml
vendored
@ -50,6 +50,48 @@ jobs:
|
|||||||
name: osu-test-results-${{matrix.os.prettyname}}-${{matrix.threadingMode}}
|
name: osu-test-results-${{matrix.os.prettyname}}-${{matrix.threadingMode}}
|
||||||
path: ${{github.workspace}}/TestResults/TestResults-${{matrix.os.prettyname}}-${{matrix.threadingMode}}.trx
|
path: ${{github.workspace}}/TestResults/TestResults-${{matrix.os.prettyname}}-${{matrix.threadingMode}}.trx
|
||||||
|
|
||||||
|
build-only-android:
|
||||||
|
name: Build only (Android)
|
||||||
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 60
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install .NET 5.0.x
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: "5.0.x"
|
||||||
|
|
||||||
|
- name: Setup MSBuild
|
||||||
|
uses: microsoft/setup-msbuild@v1
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: msbuild osu.Android.slnf /restore /p:Configuration=Debug
|
||||||
|
|
||||||
|
build-only-ios:
|
||||||
|
# While this workflow technically *can* run, it fails as iOS builds are blocked by multiple issues.
|
||||||
|
# See https://github.com/ppy/osu-framework/issues/4677 for the details.
|
||||||
|
# The job can be unblocked once those issues are resolved and game deployments can happen again.
|
||||||
|
if: false
|
||||||
|
name: Build only (iOS)
|
||||||
|
runs-on: macos-latest
|
||||||
|
timeout-minutes: 60
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install .NET 5.0.x
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: "5.0.x"
|
||||||
|
|
||||||
|
# Contrary to seemingly any other msbuild, msbuild running on macOS/Mono
|
||||||
|
# cannot accept .sln(f) files as arguments.
|
||||||
|
# Build just the main game for now.
|
||||||
|
- name: Build
|
||||||
|
run: msbuild osu.iOS/osu.iOS.csproj /restore /p:Configuration=Debug
|
||||||
|
|
||||||
inspect-code:
|
inspect-code:
|
||||||
name: Code Quality
|
name: Code Quality
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -105,7 +106,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
getUser.TriggerFailure(new Exception());
|
getUser.TriggerFailure(new WebException());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -117,7 +117,6 @@ namespace osu.Game.Beatmaps
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public DateTimeOffset? LastUpdated => OnlineInfo.LastUpdated;
|
public DateTimeOffset? LastUpdated => OnlineInfo.LastUpdated;
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public BeatmapSetOnlineStatus Status { get; set; } = BeatmapSetOnlineStatus.None;
|
public BeatmapSetOnlineStatus Status { get; set; } = BeatmapSetOnlineStatus.None;
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty(@"accuracy")]
|
[JsonProperty(@"accuracy")]
|
||||||
private float overallDifficulty { get; set; }
|
private float overallDifficulty { get; set; }
|
||||||
|
|
||||||
public double Length => lengthInSeconds * 1000;
|
public double Length => TimeSpan.FromSeconds(lengthInSeconds).TotalMilliseconds;
|
||||||
|
|
||||||
[JsonProperty(@"total_length")]
|
[JsonProperty(@"total_length")]
|
||||||
private double lengthInSeconds { get; set; }
|
private double lengthInSeconds { get; set; }
|
||||||
@ -86,7 +86,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
OnlineBeatmapID = OnlineID,
|
OnlineBeatmapID = OnlineID,
|
||||||
Version = DifficultyName,
|
Version = DifficultyName,
|
||||||
// this is actually an incorrect mapping (Length is calculated as drain length in lazer's import process, see BeatmapManager.calculateLength).
|
// this is actually an incorrect mapping (Length is calculated as drain length in lazer's import process, see BeatmapManager.calculateLength).
|
||||||
Length = TimeSpan.FromSeconds(Length).TotalMilliseconds,
|
Length = Length,
|
||||||
Status = Status,
|
Status = Status,
|
||||||
MD5Hash = Checksum,
|
MD5Hash = Checksum,
|
||||||
BeatmapSet = set,
|
BeatmapSet = set,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user