Skip to content

Build

Build #48

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@v3
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v3
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@v3
with:
path: '*.mpack'
if-no-files-found: error