Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
C# audioaudio-unitavaloniacpp20cross-platformdawdigital-audio-workstationdspjucelinux-audiomcp-servermidimusicmusic-productionpiano-rollplugin-hostsequencersynthesizervstvst3
(chore) CI on pull requests, contributor branch workflow
Egor Khindikaynena5d743593066
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERSnew file mode 100644index 00000000..6d5a3079--- /dev/null+++ b/.github/CODEOWNERS@@ -0,0 +1,3 @@+# Review requests for every pull request go to the maintainer.+# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners+* @ambertapediff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdindex f4a6f078..83ae6bb7 100644--- a/.github/PULL_REQUEST_TEMPLATE.md+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -11,6 +11,7 @@ Link the spec-driven artifacts if this is non-trivial work (skip for small fixes## Checklist+- [ ] Base branch is `develop` (not `main`)- [ ] `scripts/build.sh` (or `scripts/build-linux.sh` / `scripts/build-win.ps1`) passes — it runs the smoke test- [ ] Built and tested on: [ ] macOS [ ] Windows [ ] Linux- [ ] New source files carry the AGPL-3.0-only SPDX headerdiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 00000000..a9693860--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,89 @@+name: CI++# Builds the engine + managed solution and runs the smoke test on macOS, Windows and+# Linux for every pull request into develop or main, and for every push to them. This is+# the required status check for merging (branch rulesets on develop and main).+#+# Runs on `pull_request`, never `pull_request_target`: code from forks executes with a+# read-only token and no secrets. Workflows from first-time contributors wait for a+# maintainer's approval (Settings -> Actions -> General).+#+# The smoke test renders offline, so the runners need no audio hardware.++on:+ pull_request:+ branches: [develop, main]+ push:+ branches: [develop, main]+ workflow_dispatch:++permissions:+ contents: read++# A newer push to the same PR cancels the build still running for the old one.+concurrency:+ group: ci-${{ github.event.pull_request.number || github.ref }}+ cancel-in-progress: true++jobs:+ macos:+ name: macOS+ runs-on: macos-26+ steps:+ - uses: actions/checkout@v5+ with:+ submodules: recursive # JUCE, flac+ - uses: actions/setup-dotnet@v5+ with:+ dotnet-version: '10.0.x'+ - uses: actions/setup-node@v5 # rebuilds the Nota Remote phone page when its sources changed+ with:+ node-version: '22'+ - name: Install build tools+ run: brew install cmake ninja+ - name: Build + smoke test+ run: bash scripts/build.sh++ windows:+ name: Windows+ runs-on: windows-2022+ steps:+ - uses: actions/checkout@v5+ with:+ submodules: recursive+ - uses: actions/setup-dotnet@v5+ with:+ dotnet-version: '10.0.x'+ - uses: actions/setup-node@v5+ with:+ node-version: '22'+ - uses: ilammy/msvc-dev-cmd@v1 # the "Developer PowerShell" environment build-win.ps1 expects+ with:+ arch: x64+ - name: Install Ninja+ run: choco install ninja --no-progress -y+ - name: Build + smoke test+ run: pwsh scripts/build-win.ps1++ linux:+ name: Linux+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v5+ with:+ submodules: recursive+ - uses: actions/setup-dotnet@v5+ with:+ dotnet-version: '10.0.x'+ - uses: actions/setup-node@v5+ with:+ node-version: '22'+ - name: Install build deps+ run: |+ sudo apt-get update -qq+ sudo apt-get install -y --no-install-recommends \+ cmake ninja-build build-essential \+ libasound2-dev libx11-dev libxext-dev libxrandr-dev libxinerama-dev \+ libxcursor-dev libfreetype6-dev libfontconfig1-dev+ - name: Build + smoke test+ run: bash scripts/build-linux.shdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex c6fb57cd..c321f274 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -102,8 +102,28 @@ dotnet run --project src/managed/Nota.AppThe build scripts run the smoke test (`tests/Nota.SmokeTest`), which drives the engineend-to-end through the C ABI. **It must pass before you open a pull request.**+## Branches++- **`develop`** is where work lands. Branch from it and open your pull request against+ it.+- **`main`** holds released code only. It moves forward when a release is cut from+ `develop`; pull requests straight into `main` are not accepted.++Name your branch after the change — `feat/stereo-pan-law`, `fix/clip-fade-click` — and+keep it up to date by rebasing on, or merging in, the latest `develop`. Pull requests are+squash-merged, so the pull request title becomes the commit message on `develop`: write+it in the same form as the existing history, `(feat) …`, `(fix) …`, `(docs) …`,+`(chore) …`.++## Continuous integration++Every pull request is built on macOS, Windows and Linux, and the smoke test runs on each+(`.github/workflows/ci.yml`). All three must pass before a pull request can be merged.+If this is your first contribution, a maintainer approves the CI run before it starts.+## Pull requests+- Target `develop`.- One logical change per pull request.- Match the style of the code around you. Comment headers explain *why* a file exists,not what each line does — keep that convention.diff --git a/scripts/build-win.ps1 b/scripts/build-win.ps1index 11ba0105..290868ac 100644--- a/scripts/build-win.ps1+++ b/scripts/build-win.ps1@@ -6,6 +6,9 @@# Usage: pwsh scripts/build-win.ps1$ErrorActionPreference = 'Stop'+# Stop on a failing native command (cmake, dotnet, the smoke test) too — without this+# a non-zero exit code is ignored and the script, and CI, report success. PowerShell 7.3+.+$PSNativeCommandUseErrorActionPreference = $trueSet-Location (Join-Path $PSScriptRoot '..')$Native = 'src/native/nota.engine/build'