From 96474697e3f79f7cf6049a73df754fe7ce189c13 Mon Sep 17 00:00:00 2001 From: "Mark A. Tsuchida" Date: Sat, 26 Sep 2026 14:10:45 -0500 Subject: [PATCH 1/2] Pin mmdevice commit --- subprojects/mmdevice.wrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/mmdevice.wrap b/subprojects/mmdevice.wrap index 0de09a9..3bd670e 100644 --- a/subprojects/mmdevice.wrap +++ b/subprojects/mmdevice.wrap @@ -3,7 +3,7 @@ [wrap-git] url = https://github.com/micro-manager/mmdevice.git -revision = HEAD +revision = 47db7e017c79d784dafbd8b1a374186e1dd4019a depth = 1 [provide] From 4b219de88991427095387d664034b6ad89e41b71 Mon Sep 17 00:00:00 2001 From: "Mark A. Tsuchida" Date: Sat, 26 Sep 2026 14:17:33 -0500 Subject: [PATCH 2/2] CI: tag-based release creation (Assisted by Claude Code; any errors are mine.) --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 15 +++++++++++++-- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94e9295..c82d590 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ name: CI on: push: branches: [main] + tags: ["v*"] pull_request: workflow_dispatch: @@ -181,3 +182,36 @@ jobs: name: mmdev-SimulatedMicroscope-${{ matrix.platform }} path: dist/ if-no-files-found: error + + release: + if: startsWith(github.ref, 'refs/tags/v') + needs: [lint, build] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/download-artifact@v8 + with: + pattern: mmdev-SimulatedMicroscope-* + path: artifacts + + # Zipped because the macOS arm64 and x86_64 files have the same name. + - name: Zip artifacts + working-directory: artifacts + run: | + for dir in */; do + name="${dir%/}" + (cd "$name" && zip "../$name-$GITHUB_REF_NAME.zip" *) + done + + - name: Create draft release + env: + GH_TOKEN: ${{ github.token }} + run: > + gh release create "$GITHUB_REF_NAME" + --repo "$GITHUB_REPOSITORY" + --draft + --verify-tag + --title "$GITHUB_REF_NAME" + --generate-notes + artifacts/*.zip diff --git a/README.md b/README.md index d484a0a..bacb9d6 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,19 @@ just test ## Installing -The build produces `builddir/SimulatedMicroscope.mmdev`. Currently, you need to -copy this file into your Micro-Manager installation directory and rename it: +Prebuilt binaries are available on the +[Releases](https://github.com/marktsuchida/mmdev-SimulatedMicroscope/releases) +page. Unzip the file for your platform into your Micro-Manager installation +directory. + +On macOS, the binaries are not signed, so Gatekeeper will usually block a file +downloaded with a web browser. Download with `curl -LO ` instead, or +remove the quarantine attribute from the extracted file with +`xattr -d com.apple.quarantine libmmgr_dal_SimulatedMicroscope`. + +If you build from source, the build produces +`builddir/SimulatedMicroscope.mmdev`. Copy this file into your Micro-Manager +installation directory and rename it: | Platform | File name | | -------- | -------------------------------------- |