Skip to content

Commit

Permalink
Add simple CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Jul 10, 2024
1 parent 06e6ce2 commit d4a9b1d
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
# Weekly checks for nuget package updates
- package-ecosystem: 'nuget'
directory: '/'
schedule:
interval: 'weekly'
day: 'monday'
time: '06:00'
groups:
npm-dependencies:
patterns:
- '*' # Group all updates together
53 changes: 53 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
push:
branches:
- *
pull_request:
branches:
- master
- develop
types: [opened, reopened, synchronize]
workflow_call:
workflow_dispatch:

name: ci-build

env:
DOTNET_VERSION: 8.0.x
REGISTRY: ghcr.io

jobs:

build:
runs-on: ubuntu-latest

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

- name: Setup .NET SDK ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore -o ./publish

- name: Test
run: dotnet test --no-restore --verbosity normal

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Package
path: |
publish/*.nupkg
publish/*.snupkg
publish/LucHeart.CoreOSC.dll
publish/LucHeart.CoreOSC.pdb
retention-days: 7
if-no-files-found: error

0 comments on commit d4a9b1d

Please sign in to comment.