EllieHub/.woodpecker/build.yaml

35 lines
796 B
YAML
Raw Normal View History

2024-07-18 07:15:28 -07:00
when:
- event: tag
- event: pull_request
2024-07-18 07:05:00 -07:00
2024-07-18 07:15:28 -07:00
variables:
- &dotnet_image 'mcr.microsoft.com/dotnet/sdk:8.0'
2024-07-18 07:05:00 -07:00
2024-07-18 07:15:28 -07:00
# cspell:words bindata netgo
steps:
- name: Build
2024-07-18 07:32:07 -07:00
image: *dotnet_image
2024-07-18 07:15:28 -07:00
run: dotnet build -c Release
- name: Test
2024-07-18 07:32:07 -07:00
image: *dotnet_image
2024-07-18 07:15:28 -07:00
run: dotnet test
- name: Publish
2024-07-18 07:32:07 -07:00
image: *dotnet_image
2024-07-18 07:15:28 -07:00
run: |
cd .\EllieHub\
dotnet publish -c Release -r win-x64 -o "build\EllieHub_win-x64" --self-contained
dotnet publish -c Release -r win-arm64 -o "build\EllieHub_win-arm64" --self-contained
cd ..\
- name: Package
2024-07-18 07:32:07 -07:00
commands:
- apt update
- apt add tar zip
- mkdir zips
- zip zips\EllieHub_win-x64.zip build\EllieHub_win-x64
- zip zips\EllieHub_win-arm64.zip build\EllieHub_win-arm64"