Skip to content

Commit

Permalink
Add tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
seionmoya committed Jun 8, 2024
1 parent 561f8ab commit 446c22e
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: .NET Build

on:
workflow_dispatch:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'

jobs:
build:
runs-on: ubuntu-latest

env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Install dependencies
run: dotnet restore --configfile Nuget.config

- name: Build
run: dotnet build --nologo --no-restore --configuration Debug

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin/
obj/
obj/
.nuget/
12 changes: 12 additions & 0 deletions Nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>

<config>
<add key="globalPackagesFolder" value=".nuget/packages"/>
</config>

<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
</packageSources>

</configuration>
59 changes: 59 additions & 0 deletions Seion.GenuineClient.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"folders": [
{
"path": "."
}
],
"tasks": {
"version": "2.0.0",
"options": {
"env": {
"DOTNET_NOLOGO": "yes",
"DOTNET_CLI_TELEMETRY_OPTOUT": "yes"
}
},
"tasks": [
{
"label": "dotnet: restore",
"type": "shell",
"command": "dotnet restore --nologo",
"problemMatcher": []
},
{
"label": "dotnet: build debug",
"type": "shell",
"command": "dotnet build --nologo --no-restore --configuration Debug",
"problemMatcher": [],
"dependsOn": ["dotnet: restore"],
"dependsOrder": "sequence",
"group": "build"
},
{
"label": "dotnet: build release",
"type": "shell",
"command": "dotnet build --nologo --no-restore --configuration Release",
"problemMatcher": [],
"dependsOn": ["dotnet: restore"],
"dependsOrder": "sequence",
"group": "build"
},
{
"label": "dotnet: build publish",
"type": "shell",
"command": "dotnet publish --nologo --no-build",
"problemMatcher": [],
"dependsOn": ["dotnet: build release"],
"dependsOrder": "sequence",
"group": "build"
}
]
},
"settings": {
"window.title": "Genuine Client"
},
"extensions": {
"recommendations": [
"ms-dotnettools.csharp"
]
}
}

0 comments on commit 446c22e

Please sign in to comment.