Skip to content

Commit

Permalink
Initial commit of project
Browse files Browse the repository at this point in the history
  • Loading branch information
hjohnson12 committed Jun 19, 2024
0 parents commit 767a3c1
Show file tree
Hide file tree
Showing 442 changed files with 27,007 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
66 changes: 66 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: .NET CI Build

on:
push:
branches: [ '**' ]

jobs:
build:
runs-on: windows-latest

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

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.426'

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2

- name: Restore NuGet packages for Non-UWP Projects
run: dotnet restore ./src/ChatTailorAI.sln

- name: Restore NuGet packages for UWP Projects
run: |
msbuild /t:restore ./src/ChatTailorAI.Services.Uwp/ChatTailorAI.Services.Uwp.csproj
msbuild /t:restore ./src/ChatTailorAI.Uwp/ChatTailorAI.Uwp.csproj
- name: Build .NET Standard projects
run: |
dotnet build --configuration Release ./src/ChatTailorAI.DataAccess/ChatTailorAI.DataAccess.csproj --no-restore
dotnet build --configuration Release ./src/ChatTailorAI.Services/ChatTailorAI.Services.csproj --no-restore
dotnet build --configuration Release ./src/ChatTailorAI.Shared/ChatTailorAI.Shared.csproj --no-restore
- name: Build UWP Class Library
run: msbuild /p:Configuration=Release /p:Platform=x86 ./src/ChatTailorAI.Services.Uwp/ChatTailorAI.Services.Uwp.csproj

- name: Build UWP project (Debug)
if: github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'
run: msbuild /p:Configuration=Debug /p:Platform=x86 /p:AppxPackageSigningEnabled=false ./src/ChatTailorAI.Uwp/ChatTailorAI.Uwp.csproj

- name: Build UWP project (Release)
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
env:
PFX_CERTIFICATE: ${{ secrets.PFX_CERTIFICATE }}
PFX_PASSWORD: ${{ secrets.PFX_PASSWORD }}
run: |
# TODO: Change key used if eventually uploading an artifact for the store from actions
echo "$PFX_CERTIFICATE" | base64 --decode > ./ChatTailorAI_Key.pfx
msbuild /p:Configuration=Release /p:Platform=x86 /p:UapAppxPackageBuildMode=StoreUpload /p:PackageCertificateKeyFile=./ChatTailorAICertificate.pfx /p:PackageCertificatePassword=$PFX_PASSWORD ./src/ChatTailorAI.Uwp/ChatTailorAI.Uwp.csproj
build-migrations:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET 6.x SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'

- name: Build Migrations project
run: dotnet build --configuration Release ./src/ChatTailorAI.Migrations/ChatTailorAI.Migrations.csproj
Loading

0 comments on commit 767a3c1

Please sign in to comment.