mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: Quick Build for Tests
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
artifact-name:
|
|
description: "Name of the build artifacts"
|
|
value: ${{ jobs.quick-build.outputs.artifact-name }}
|
|
|
|
jobs:
|
|
quick-build:
|
|
name: Build Debug Only
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
artifact-name: test-build-artifacts
|
|
|
|
timeout-minutes: 5
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.x
|
|
dotnet-quality: 'ga'
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
|
|
# Suppress CS0618 (member is obsolete) and CS0612 (member is obsolete without message)
|
|
- name: Build Debug
|
|
run: dotnet build --configuration Debug --no-restore -property:NoWarn=0618%3B0612
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-build-artifacts
|
|
path: |
|
|
**/bin/Debug/**
|
|
**/obj/Debug/**
|
|
retention-days: 1
|