Repository navigation
Add cmux ssh remote workspaces with auto port forwarding #1296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
19b59ca
2e6856f
601e5a9
4fffe3b
21246c7
b0bfabd
50b5969
2c9464c
965965c
6dd0f15
815ed87
1b95c25
85e6a5a
29d046c
2eae782
5e7458b
902ee03
ca4f4b7
60137e0
3fbfd74
03dc055
832426a
60aab29
b0d994c
93bc5ea
8cd3677
bbdb626
8531e4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,6 +19,8 @@ concurrency: | |||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||||||||||||||||||||||||||||
| contents: write | ||||||||||||||||||||||||||||||||||||||||||||||||
| attestations: write | ||||||||||||||||||||||||||||||||||||||||||||||||
| id-token: write | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||||||||
| CREATE_DMG_VERSION: 8.0.0 | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -166,6 +168,11 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||
| key: spm-${{ hashFiles('GhosttyTabs.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} | ||||||||||||||||||||||||||||||||||||||||||||||||
| restore-keys: spm- | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Setup Go | ||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||
| go-version-file: daemon/remote/go.mod | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Derive Sparkle public key from private key | ||||||||||||||||||||||||||||||||||||||||||||||||
| if: needs.decide.outputs.should_publish != 'true' || steps.current_head_prebuild.outputs.still_current == 'true' | ||||||||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -250,6 +257,7 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||
| NIGHTLY_BUILD="${NIGHTLY_DATE}000000" | ||||||||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||||||||
| echo "NIGHTLY_BUILD=${NIGHTLY_BUILD}" >> "$GITHUB_ENV" | ||||||||||||||||||||||||||||||||||||||||||||||||
| echo "NIGHTLY_REMOTE_DAEMON_VERSION=${BASE_MARKETING}-nightly.${NIGHTLY_DATE}" >> "$GITHUB_ENV" | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| NIGHTLY_DMG_IMMUTABLE="cmux-nightly-macos-${NIGHTLY_BUILD}.dmg" | ||||||||||||||||||||||||||||||||||||||||||||||||
| echo "NIGHTLY_DMG_IMMUTABLE=${NIGHTLY_DMG_IMMUTABLE}" >> "$GITHUB_ENV" | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -286,6 +294,24 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||
| echo "Nightly immutable DMG: ${NIGHTLY_DMG_IMMUTABLE}" | ||||||||||||||||||||||||||||||||||||||||||||||||
| echo "Commit SHA: ${SHORT_SHA}" | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Build remote daemon nightly assets and inject manifest | ||||||||||||||||||||||||||||||||||||||||||||||||
| if: needs.decide.outputs.should_publish != 'true' || steps.current_head.outputs.still_current == 'true' | ||||||||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||||||||
| set -euo pipefail | ||||||||||||||||||||||||||||||||||||||||||||||||
| ./scripts/build_remote_daemon_release_assets.sh \ | ||||||||||||||||||||||||||||||||||||||||||||||||
| --version "$NIGHTLY_REMOTE_DAEMON_VERSION" \ | ||||||||||||||||||||||||||||||||||||||||||||||||
| --release-tag "nightly" \ | ||||||||||||||||||||||||||||||||||||||||||||||||
| --repo "manaflow-ai/cmux" \ | ||||||||||||||||||||||||||||||||||||||||||||||||
| --output-dir "remote-daemon-assets" | ||||||||||||||||||||||||||||||||||||||||||||||||
| MANIFEST_JSON="$(python3 -c 'import json,sys; print(json.dumps(json.load(open(sys.argv[1], encoding="utf-8")), separators=(",",":")))' remote-daemon-assets/cmuxd-remote-manifest.json)" | ||||||||||||||||||||||||||||||||||||||||||||||||
| for APP_PLIST in \ | ||||||||||||||||||||||||||||||||||||||||||||||||
| "build-arm/Build/Products/Release/cmux NIGHTLY.app/Contents/Info.plist" \ | ||||||||||||||||||||||||||||||||||||||||||||||||
| "build-universal/Build/Products/Release/cmux NIGHTLY.app/Contents/Info.plist" | ||||||||||||||||||||||||||||||||||||||||||||||||
| do | ||||||||||||||||||||||||||||||||||||||||||||||||
| plutil -remove CMUXRemoteDaemonManifestJSON "$APP_PLIST" >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||
| plutil -insert CMUXRemoteDaemonManifestJSON -string "$MANIFEST_JSON" "$APP_PLIST" | ||||||||||||||||||||||||||||||||||||||||||||||||
| done | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Import signing cert | ||||||||||||||||||||||||||||||||||||||||||||||||
| if: needs.decide.outputs.should_publish != 'true' || (steps.current_head_prebuild.outputs.still_current == 'true' && steps.current_head_postbuild.outputs.still_current == 'true') | ||||||||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -425,6 +451,18 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||
| # installs to migrate onto the unified nightly appcast. | ||||||||||||||||||||||||||||||||||||||||||||||||
| cp appcast.xml appcast-universal.xml | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Attest remote daemon nightly assets | ||||||||||||||||||||||||||||||||||||||||||||||||
| if: needs.decide.outputs.should_publish != 'true' || steps.current_head.outputs.still_current == 'true' | ||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||
| subject-path: | | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-darwin-arm64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-darwin-amd64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-linux-arm64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-linux-amd64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-checksums.txt | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-manifest.json | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Upload branch nightly artifacts | ||||||||||||||||||||||||||||||||||||||||||||||||
| if: needs.decide.outputs.should_publish != 'true' | ||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -433,7 +471,16 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||
| path: | | ||||||||||||||||||||||||||||||||||||||||||||||||
| cmux-nightly-macos*.dmg | ||||||||||||||||||||||||||||||||||||||||||||||||
| appcast.xml | ||||||||||||||||||||||||||||||||||||||||||||||||
| <<<<<<< HEAD | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-darwin-arm64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-darwin-amd64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-linux-arm64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-linux-amd64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-checksums.txt | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-manifest.json | ||||||||||||||||||||||||||||||||||||||||||||||||
| ======= | ||||||||||||||||||||||||||||||||||||||||||||||||
| appcast-universal.xml | ||||||||||||||||||||||||||||||||||||||||||||||||
| >>>>>>> origin/main | ||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unresolved merge conflict markers will break the workflow. The file contains Git merge conflict markers ( Based on the intent to include both the remote-daemon-assets and the legacy 🐛 Proposed fix - resolve merge conflict path: |
cmux-nightly-macos*.dmg
appcast.xml
-<<<<<<< HEAD
remote-daemon-assets/cmuxd-remote-darwin-arm64
remote-daemon-assets/cmuxd-remote-darwin-amd64
remote-daemon-assets/cmuxd-remote-linux-arm64
remote-daemon-assets/cmuxd-remote-linux-amd64
remote-daemon-assets/cmuxd-remote-checksums.txt
remote-daemon-assets/cmuxd-remote-manifest.json
-=======
appcast-universal.xml
->>>>>>> origin/main
if-no-files-found: error📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.11)[error] 474-474: could not parse as YAML: could not find expected ':' (syntax-check) 🪛 YAMLlint (1.38.0)[error] 481-481: syntax error: could not find expected ':' (syntax) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||
| if-no-files-found: error | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Move nightly tag to built commit | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -466,7 +513,16 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||
| cmux-nightly-macos-${{ github.run_id }}*.dmg | ||||||||||||||||||||||||||||||||||||||||||||||||
| cmux-nightly-macos.dmg | ||||||||||||||||||||||||||||||||||||||||||||||||
| appcast.xml | ||||||||||||||||||||||||||||||||||||||||||||||||
| <<<<<<< HEAD | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-darwin-arm64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-darwin-amd64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-linux-arm64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-linux-amd64 | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-checksums.txt | ||||||||||||||||||||||||||||||||||||||||||||||||
| remote-daemon-assets/cmuxd-remote-manifest.json | ||||||||||||||||||||||||||||||||||||||||||||||||
| ======= | ||||||||||||||||||||||||||||||||||||||||||||||||
| appcast-universal.xml | ||||||||||||||||||||||||||||||||||||||||||||||||
| >>>>>>> origin/main | ||||||||||||||||||||||||||||||||||||||||||||||||
| overwrite_files: true | ||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Second unresolved merge conflict in release assets. Same issue as above—merge conflict markers must be resolved to include both the remote-daemon-assets and 🐛 Proposed fix - resolve merge conflict files: |
cmux-nightly-macos-${{ github.run_id }}*.dmg
cmux-nightly-macos.dmg
appcast.xml
-<<<<<<< HEAD
remote-daemon-assets/cmuxd-remote-darwin-arm64
remote-daemon-assets/cmuxd-remote-darwin-amd64
remote-daemon-assets/cmuxd-remote-linux-arm64
remote-daemon-assets/cmuxd-remote-linux-amd64
remote-daemon-assets/cmuxd-remote-checksums.txt
remote-daemon-assets/cmuxd-remote-manifest.json
-=======
appcast-universal.xml
->>>>>>> origin/main
overwrite_files: true📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Cleanup keychain | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.