Skip to content

[Milky] Implemented WebHook Communication #5

[Milky] Implemented WebHook Communication

[Milky] Implemented WebHook Communication #5

Workflow file for this run

name: Build Lagrange.Milky
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
rid: win-x64
- os: macos-latest
rid: osx-arm64
- os: ubuntu-latest
rid: linux-x64
env:
RUNTIME_IDENTIFIER: ${{ matrix.rid }}
steps:
- name: Install Linux Dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y clang zlib1g-dev
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Checkout code
uses: actions/checkout@v4
- name: Publish with Native AOT
run: dotnet publish Lagrange.Milky/Lagrange.Milky.csproj -c Release -r ${{ matrix.rid }}
- name: Upload Windows artifacts
if: matrix.os == 'windows-latest' && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: Lagrange.Milky-${{ matrix.rid }}
path: Lagrange.Milky/bin/Release/net9.0/${{ matrix.rid }}/publish/Lagrange.Milky.exe
- name: Upload macOS and Linux artifacts
if: matrix.os != 'windows-latest' && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: Lagrange.Milky-${{ matrix.rid }}
path: Lagrange.Milky/bin/Release/net9.0/${{ matrix.rid }}/publish/Lagrange.Milky