Skip to content

Commit 2dad9ae

Browse files
committed
.
1 parent fea86ef commit 2dad9ae

File tree

100 files changed

+16704
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+16704
-1
lines changed

.config/dotnet-tools.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-outdated-tool": {
6+
"version": "4.5.1",
7+
"commands": [
8+
"dotnet-outdated"
9+
]
10+
}
11+
}
12+
}

.editorconfig

+1,001
Large diffs are not rendered by default.

.gitattributes

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# force CRLF on .NET stuff
5+
*.cs text diff=csharp eol=crlf
6+
*.xaml text diff=html eol=crlf
7+
*.csproj text merge=union eol=crlf
8+
*.shproj text merge=union eol=crlf
9+
*.projitems text merge=union eol=crlf
10+
*.props text merge=union eol=crlf
11+
*.targets text merge=union eol=crlf
12+
*.sln text merge=union eol=crlf
13+
14+
# force CRLF on Android stuff
15+
AndroidManifest.xml text merge=union eol=crlf
16+
*.java text diff=java eol=crlf
17+
18+
# force LF on most other source code files types
19+
*.inc text eol=lf
20+
*.cpp text diff=cpp eol=lf
21+
*.c++ text diff=cpp eol=lf
22+
*.html text diff=html eol=lf
23+
*.phtml text diff=html eol=lf
24+
*.php text diff=php eol=lf
25+
*.py text diff=python eol=lf
26+
*.css text diff=css eol=lf merge=union
27+
*.js text
28+
*.sql text
29+
30+
# force CRLF on Windows stuff
31+
*.bat text merge=union eol=crlf
32+
*.ps1 text merge=union eol=crlf
33+
*.txt text merge=union eol=crlf
34+
35+
# force LF on Apple stuff
36+
*.plist text merge=union eol=lf
37+
*.plist.template text merge=union eol=lf
38+
39+
# force LF on Linux stuff
40+
*.sh text merge=union eol=lf
41+
42+
# show diff for Microsoft Office files
43+
*.docx diff=astextplain
44+
*.DOCX diff=astextplain
45+

.github/workflows/deploy-nuget.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: NuGet packages
2+
3+
env:
4+
DOTNET_VERSION: '7.0.103' # set this to the .NET Core version to use
5+
BRANCH: ${{ github.ref_name }}
6+
7+
on:
8+
push:
9+
branches: [ "main" ]
10+
paths:
11+
- 'src/LR.Standard*/**'
12+
- 'nukebuild/**'
13+
- '.github/**'
14+
workflow_dispatch:
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
deploy:
21+
runs-on: [self-hosted, linux]
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
with:
26+
path: lr_core
27+
28+
- name: Cleanup
29+
run: rm -rf ~/.dotnet/toolResolverCache
30+
31+
- name: Install SSH Key
32+
uses: shimataro/ssh-key-action@v2
33+
with:
34+
key: ${{ secrets.SSH_PRIVATE_KEY }}
35+
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
36+
if_key_exists: ignore
37+
38+
- name: Set up .NET Core
39+
uses: actions/setup-dotnet@v2
40+
with:
41+
dotnet-version: ${{ env.DOTNET_VERSION }}
42+
43+
- name: Android SDK
44+
run: bash -c 'yes | androidsdk "platform-tools" "platforms;android-33" "ndk-bundle" "build-tools;33.0.0"'
45+
46+
- name: Install Workloads
47+
run: cd lr_core; echo -n | sudo ~/.dotnet/dotnet workload install android ; sudo ~/.dotnet/dotnet nuget locals temp --clear
48+
49+
- name: Run './build.cmd CiGithubActionsLinux'
50+
run: cd lr_core; export PATH="$PATH:$HOME/.dotnet/tools"; ./build.cmd CiGithubActionsLinux
51+
env:
52+
NuGetAzureDevOpsPassword: ${{ secrets.NUGET_AZUREDEVOPS_PASSWORD }}
53+
NuGetOrgApiKey: ${{ secrets.NUGET_ORG_APIKEY }}
54+
ANDROID_SDK_ROOT: /home/tobias/AndroidSDK
55+
56+
- name: Cleanup
57+
if: always()
58+
run: rm -rf lr_core
59+

.gitignore

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# Executables
2+
*.exe
3+
*.dll
4+
*.pdb
5+
*.mdb
6+
*.bin
7+
8+
# Packages
9+
*.nupkg
10+
11+
# Build directories
12+
bin
13+
obj
14+
Debug
15+
Release
16+
packages
17+
global-packages
18+
artifacts
19+
packages
20+
backup
21+
pub
22+
publish
23+
24+
# IDE-specific directories
25+
.idea
26+
*.userprefs
27+
.suo
28+
.vs
29+
.droidres
30+
31+
# Nuget
32+
*.lock.json
33+
*.nuget.props
34+
*.nuget.targets
35+
36+
# backup files
37+
*.save
38+
*.bak
39+
*.backup
40+
*.suo
41+
*.user
42+
*.swp
43+
~*
44+
45+
# Temporary directories
46+
tmp
47+
temp
48+
x
49+
xx
50+
xxx
51+
y
52+
yy
53+
yyy
54+
z
55+
zz
56+
zzz
57+
*.so.0
58+
59+
# UWP
60+
AppPackages
61+
BundleArtifacts
62+
63+
# macos
64+
.DS_Store
65+
66+
# version incrementer
67+
AndroidManifest.temp.xml
68+
Info.plist
69+
BuildVersion.gen.cs
70+
app.props
71+
72+
# xaml
73+
*.xaml.gen.cs
74+
*.dkxaml.gen.cs
75+
76+
# Android Resource.Designer.cs
77+
**/[Rr]esource.[Dd]esigner.cs
78+
79+
# Android C++
80+
objs-debug
81+
*.a
82+
83+
# Mono Crash
84+
mono_crash.*.json
85+
86+
# pkg-config: ignore certain unneeded files (but we want other .pc files)
87+
libnghttp2_asio.pc
88+
89+
# Mono Profiler
90+
*.mlpd
91+
92+
# Web, Laravel
93+
node_modules
94+
public/hot
95+
public/storage
96+
storage/*.key
97+
/vendor
98+
.env
99+
.env.backup
100+
.phpunit.result.cache
101+
docker-compose.override.yml
102+
Homestead.json
103+
Homestead.yaml
104+
npm-debug.log
105+
yarn-error.log
106+
.idea
107+
.vscode
108+
composer.phar
109+
110+
# Other
111+
profile.txt
112+
files-android
113+
database.sqlite
114+
*.nettrace
115+
*.speedscope.json
116+
mail.info.1
117+
**/MSBuild.gen.cs
118+
**/MSBuild.gen.sh
119+

.nuke/build.schema.json

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Build Schema",
4+
"$ref": "#/definitions/build",
5+
"definitions": {
6+
"build": {
7+
"type": "object",
8+
"properties": {
9+
"Configuration": {
10+
"type": "string",
11+
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
12+
"enum": [
13+
"Debug",
14+
"Release"
15+
]
16+
},
17+
"Continue": {
18+
"type": "boolean",
19+
"description": "Indicates to continue a previously failed build attempt"
20+
},
21+
"Help": {
22+
"type": "boolean",
23+
"description": "Shows the help text for this build assembly"
24+
},
25+
"Host": {
26+
"type": "string",
27+
"description": "Host for execution. Default is 'automatic'",
28+
"enum": [
29+
"AppVeyor",
30+
"AzurePipelines",
31+
"Bamboo",
32+
"Bitbucket",
33+
"Bitrise",
34+
"GitHubActions",
35+
"GitLab",
36+
"Jenkins",
37+
"Rider",
38+
"SpaceAutomation",
39+
"TeamCity",
40+
"Terminal",
41+
"TravisCI",
42+
"VisualStudio",
43+
"VSCode"
44+
]
45+
},
46+
"NoLogo": {
47+
"type": "boolean",
48+
"description": "Disables displaying the NUKE logo"
49+
},
50+
"NuGetAzureDevOpsPassword": {
51+
"type": "string",
52+
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
53+
},
54+
"NuGetOrgApiKey": {
55+
"type": "string",
56+
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
57+
},
58+
"Partition": {
59+
"type": "string",
60+
"description": "Partition to use on CI"
61+
},
62+
"Plan": {
63+
"type": "boolean",
64+
"description": "Shows the execution plan (HTML)"
65+
},
66+
"Profile": {
67+
"type": "array",
68+
"description": "Defines the profiles to load",
69+
"items": {
70+
"type": "string"
71+
}
72+
},
73+
"Root": {
74+
"type": "string",
75+
"description": "Root directory during build execution"
76+
},
77+
"Skip": {
78+
"type": "array",
79+
"description": "List of targets to be skipped. Empty list skips all dependencies",
80+
"items": {
81+
"type": "string",
82+
"enum": [
83+
"CiGithubActionsLinux",
84+
"Clean",
85+
"CleanOutdatedPackages",
86+
"ClearCache",
87+
"Compile",
88+
"CreateNugetPackages",
89+
"Pack",
90+
"Restore",
91+
"Upgrade"
92+
]
93+
}
94+
},
95+
"Solution": {
96+
"type": "string",
97+
"description": "Path to a solution file that is automatically loaded"
98+
},
99+
"Target": {
100+
"type": "array",
101+
"description": "List of targets to be invoked. Default is '{default_target}'",
102+
"items": {
103+
"type": "string",
104+
"enum": [
105+
"CiGithubActionsLinux",
106+
"Clean",
107+
"CleanOutdatedPackages",
108+
"ClearCache",
109+
"Compile",
110+
"CreateNugetPackages",
111+
"Pack",
112+
"Restore",
113+
"Upgrade"
114+
]
115+
}
116+
},
117+
"Verbosity": {
118+
"type": "string",
119+
"description": "Logging verbosity during build execution. Default is 'Normal'",
120+
"enum": [
121+
"Minimal",
122+
"Normal",
123+
"Quiet",
124+
"Verbose"
125+
]
126+
}
127+
}
128+
}
129+
}
130+
}

.nuke/parameters.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "./build.schema.json",
3+
"Solution": "src/Nowy.Core.sln"
4+
}

Directory.Build.props

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
3+
<Import Project="Root.props" Condition=" '$(IsRootPropsImported)' == '' "/>
4+
5+
</Project>

Directory.Build.targets

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
3+
<Import Project="Root.targets" Condition=" '$(IsRootTargetsImported)' == '' "/>
4+
5+
</Project>

0 commit comments

Comments
 (0)