Skip to content

Commit

Permalink
Merge pull request #93 from ionite34/add-build-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 committed Jun 21, 2023
2 parents fcaf8c9 + 6b82722 commit e77a759
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
root = true

[*]
indent_size = 4
[*.cs]
max_line_length = 100

csharp_style_var_for_built_in_types = true

dotnet_sort_system_directives_first = true
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
if: github.repository == 'LykosAI/StabilityMatrix'
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet publish .\\StabilityMatrix\\StabilityMatrix.csproj -o out -c Release -r win-x64 -p:PublishReadyToRun=true --self-contained true --no-restore

# Make a zip file of the build (only StabilityMatrix.exe)
- name: Zip Artifact
run: Compress-Archive -Path .\\out\\StabilityMatrix.exe -DestinationPath .\\out\\StabilityMatrix.zip

- name: Upload Artifacts
if: ${{ github.event_name == 'push' }}
uses: actions/upload-artifact@v2
with:
name: build
path: .\\out\\StabilityMatrix.zip

0 comments on commit e77a759

Please sign in to comment.