o_kurdybakha aadf747779
All checks were successful
First CI / build (linux-x64) (push) Successful in 1m3s
First CI / build (win-x64) (push) Successful in 1m15s
Update .gitea/workflows/ci.yml
2023-11-21 16:56:24 +00:00

21 lines
586 B
YAML

name: First CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rid: ["win-x64", "linux-x64"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- run: dotnet restore
- run: dotnet publish -o ${{ matrix.rid}}.app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
- run: tar cf ${{ matrix.rid}}.app.tar ./${{ matrix.rid}}.app
- uses: actions/upload-artifact@v3
with:
name: app.tar
path: ${{ matrix.rid}}/app.tar