Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
khensunny committed Sep 29, 2024
0 parents commit 59656a1
Show file tree
Hide file tree
Showing 22 changed files with 991 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: build

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

jobs:
build:

strategy:
matrix:
platform: [x64, ARM64]

runs-on: windows-latest

steps:

- uses: actions/checkout@v4

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

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore /p:Platform=${{ matrix.platform }}

- name: Test
if: ${{matrix.platform == 'x64'}}
run: dotnet test --no-build --verbosity normal /p:Platform=${{ matrix.platform }}

- name: Get short commit sha
run: echo "SHORT_SHA=$($GITHUB_SHA.Substring(0, 7))" >> $GITHUB_ENV

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.platform }}-${{ env.SHORT_SHA }}
path: |
**/bin
**/obj
if-no-files-found: error
overwrite: true
Loading

0 comments on commit 59656a1

Please sign in to comment.