Skip to content

Build

Build #78

Workflow file for this run

name: Build
on:
# Build on new commits or pull requests.
push:
pull_request:
schedule:
# Run every week just to make sure the CI environment still works.
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Merge translations into add-in manifest
run: dotnet run --project Pinta/installer/addins/Pinta.AddinUtils.csproj -- localize-manifest --manifest-file NightVisionAddin/.addin.xml --resource-files NightVisionAddin/Resources/*.resx
- name: Compile
run: dotnet build -c Release
- name: Install mautil
run: dotnet tool install --global Mono.Addins.UtilTool
- name: Create Package
run: mautil pack NightVisionAddin/bin/Release/net8.0/NightVisionAddin.dll
- name: Upload Package
uses: actions/upload-artifact@v4
with:
path: '*.mpack'
if-no-files-found: error