Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add official build #2

Merged
merged 7 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions azure-pipelines-official.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
trigger:
- main
- release/*
pr:
- none

jobs:
- job:
strategy:
matrix:
Linux:
imageName: 'ubuntu-latest'
macOS:
imageName: 'macOS-latest'
Windows:
imageName: 'windows-latest'
displayName: Build & Publish
pool:
vmImage: $(imageName)
steps:
- checkout: self
clean: true

- task: DotNetCoreCLI@2
inputs:
command: 'publish'
projects: $(Build.SourcesDirectory)/src/SerialLoops/SerialLoops.csproj
arguments: '-c Release -o $(Build.ArtifactStagingDirectory)'
publishWebProjects: false
displayName: Build & Publish Serial Loops

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: '$(imageName)'
publishLocation: 'Container'
displayName: Publish build artifacts
12 changes: 7 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
trigger:
- none
pr:
- main

jobs:
- job:
strategy:
matrix:
linux:
Linux:
imageName: 'ubuntu-latest'
mac:
macOS:
imageName: 'macOS-latest'
windows:
Windows:
imageName: 'windows-latest'
displayName: Build & Test
pool:
Expand All @@ -21,12 +23,12 @@ jobs:
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: SerialLoops.sln
projects: $(Build.SourcesDirectory)/SerialLoops.sln
displayName: Build solution

- task: DotNetCoreCLI@2
inputs:
comand: 'test'
projects: test/SerialLoops.Tests/SerialLoops.Tests.csproj
projects: $(Build.SourcesDirectory)/test/SerialLoops.Tests/SerialLoops.Tests.csproj
publishTestResults: true

5 changes: 5 additions & 0 deletions src/SerialLoops.Lib/SerialLoops.Lib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@
<Nullable>disable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HaruhiChokuretsuLib" Version="0.10.0" />
<PackageReference Include="NitroPacker.Core" Version="2.0.0" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/SerialLoops/SerialLoops.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HaruhiChokuretsuLib" Version="0.10.0" />
<PackageReference Include="System.Text.Json" Version="7.0.1" />
</ItemGroup>

Expand Down