Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -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
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <url>` 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 |
| -------- | -------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion subprojects/mmdevice.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[wrap-git]
url = https://github.com/micro-manager/mmdevice.git
revision = HEAD
revision = 47db7e017c79d784dafbd8b1a374186e1dd4019a
depth = 1

[provide]
Expand Down
Loading