Skip to content

Add simple CI build

Add simple CI build #1

Workflow file for this run

on:
push:
branches:
- *

Check failure on line 4 in .github/workflows/ci-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
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