mirror of
https://github.com/LavaGang/MelonLoader.git
synced 2026-10-12 02:06:39 +00:00
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
VERSION:
|
|
required: true
|
|
type: string
|
|
SKIP_DEBUG:
|
|
required: true
|
|
type: boolean
|
|
|
|
jobs:
|
|
compile_linux:
|
|
name: Build Linux Binaries
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v6
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
- name: Restore Dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Build Debug for linux-x64
|
|
if: inputs.SKIP_DEBUG != true
|
|
run: dotnet build --no-restore -c Debug -p:Platform="x64" -p:Version="${{ inputs.VERSION }}"
|
|
|
|
- name: Upload Debug for linux-x64
|
|
if: inputs.SKIP_DEBUG != true
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: MelonLoader.Linux.x64.CI.Debug
|
|
path: Output/Debug/linux-x64
|
|
|
|
- name: Build Release for linux-x64
|
|
run: dotnet build --no-restore -c Release -p:Platform="x64" -p:Version="${{ inputs.VERSION }}"
|
|
|
|
- name: Upload Release for linux-x64
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: MelonLoader.Linux.x64.CI.Release
|
|
path: Output/Release/linux-x64 |