Skip to content

Build installers for Windows ARM64 - #3825

Merged
infeo merged 6 commits into
cryptomator:developfrom
purejava:support-windows-arm64
Jun 11, 2025
Merged

infeo merged 6 commits into
cryptomator:developfrom
purejava:support-windows-arm64

Conversation

@purejava

@purejava purejava commented Apr 21, 2025 •

Copy link
Copy Markdown
Contributor

Addresses #3647.

Depends on cryptomator/integrations-win#106.

Blocked by #3824.

Not necessarily blocked, as liberica and others can be used. 😄

Summary

  • Changes to dist build.bat/build.ps1 build scripts: the scripts on x64 use the openjf x64 jmods release, whereas the scripts on arm64 use the JavaFX modules contained in the locally installed JK on the machine, the scripts are running on - tested on both architectures and does work ✅
  • Changes to the GitHub workflow win-exe.yml: introduce a matrix workflow for the Windows architectures, and liberica jdk+fx is used for arm64 - tested on both architectures and does work ✅
  • Taken over changes for Feature: JavaFX 24 and WiX 6

@coderabbitai

coderabbitai Bot commented Apr 21, 2025 •

Copy link
Copy Markdown
## Walkthrough

The GitHub Actions workflows `.github/workflows/win-exe.yml` and `.github/workflows/winget.yml` were updated. The Windows installer build workflow was changed to use matrix jobs supporting both `x64` and `arm64` architectures for `build-msi` and `build-exe` jobs, with architecture-specific runners and Java setup parameters. Artifact names, publish URLs, and upload steps were adjusted to include architecture suffixes. Four new antivirus allowlist jobs were added, each targeting a specific architecture and installer type with dependencies chained accordingly. The winget workflow was modified to restrict the MSI installer file pattern to only `-x64.msi` files. Minor formatting and comment adjustments were also applied.

## Possibly related issues

- cryptomator/cli#84: This PR implements matrix builds for both x64 and ARM64 Windows installers, fulfilling the ARM64 publishing requirements outlined in this issue.

## Possibly related PRs

- cryptomator/cryptomator#3817: Adds multiple architecture-specific allowlist jobs in the Windows installer workflow, related by antivirus whitelist CI components but focusing on different workflow files and job structures.
- cryptomator/cryptomator#3691: Updates OpenJFX JMODs URLs and checksums in the Windows GitHub Actions workflow, related by updating OpenJFX versions in the same workflow file.

## Suggested reviewers

- infeo

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (2)

254-255: Ensure MSI signature filename matches renamed MSI
After renaming the MSI to include ${{ matrix.arch }}, the detached GPG .asc will still reference the old name. Consider renaming the .asc to match or generating the signature on the final filename:

- mv installer/Cryptomator-*.msi Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.msi
+ mv installer/Cryptomator-*.msi Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.msi
+ mv installer/Cryptomator-*.msi.asc Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.msi.asc

360-360: Ensure EXE signature filename matches renamed EXE
After moving the EXE to include ${{ matrix.arch }}, the GPG signature file will still use the old name. Apply a similar rename for the .asc or sign the final filename directly:

- mv installer/Cryptomator-Installer.exe Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.exe
+ mv installer/Cryptomator-Installer.exe Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.exe
+ mv installer/Cryptomator-Installer.exe.asc Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.exe.asc
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9dc4a1d and 4b6fa53.

⛔ Files ignored due to path filters (1)
  • dist/win/build.ps1 is excluded by !**/dist/**
📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (11 hunks)
🔇 Additional comments (17)
.github/workflows/win-exe.yml (17)

35-39: Ensure ARM64 runner availability
The dynamic runs-on expression uses the label windows-11-arm for matrix.arch == 'arm64'. Please verify that you have a self‑hosted runner registered under this label to handle ARM64 builds; otherwise, those jobs will fail immediately.


58-60: Conditional JavaFX jmods download
The step is correctly guarded by if: matrix.arch == 'x64', preventing execution on ARM64 runners. This aligns with your current jmods setup.


62-67: Checksum verification & extraction logic
The PowerShell snippet uses Get-FileHash with a .ToLower() comparison and moves .jmod files up one directory—this is a solid, robust approach.


69-70: JavaFX version consistency check
Conditionally validating that the JavaFX major version in your POM matches the downloaded jmod archive only on x64 builds is correct.


83-83: Set Maven project version
Running mvn versions:set -DnewVersion=${{ needs.get-version.outputs.semVerStr }} here ensures your artifacts use the correct release version.


92-98: Dynamic jlink module path setup
The conditional assignment of $modulePath based on ${{ matrix.arch }} correctly includes JFX jmods only for x64. Pair this with the ARM64 jmods download you’ll add per the earlier comment.


266-266: Artifact naming for MSI
Uploading the MSI under name: msi-${{ matrix.arch }} clearly separates architectures and aligns with downstream download logic.


346-349: Reattach signed burn engine
The insignia invocation to detach and then reattach the signed burn engine is correct and preserves the signed executable.


371-371: Artifact naming for EXE
Uploading the EXE under name: exe-${{ matrix.arch }} clearly separates architectures.


383-386: Publish job multi-arch outputs
Defining separate outputs (download-url-msi-x64, download-url-msi-arm64, download-url-exe-x64, download-url-exe-arm64) aligns cleanly with the matrix builds and downstream allowlisting.


392-392: Merge artifacts before release
Adding merge-multiple: true ensures all architecture artifacts are available to the release job.


403-417: Parsing download URLs by architecture
The jq filters correctly extract browser_download_url entries for each suffixed package name. This logic will yield the four required URLs for msi-x64/arm64 and exe-x64/arm64.


422-423: MSI x64 allowlist job
The allowlist-msi-x64 job correctly consumes the download-url-msi-x64 output.


429-430: MSI arm64 allowlist job
The allowlist-msi-arm64 job correctly consumes the download-url-msi-arm64 output.


434-436: EXE x64 allowlist job
The allowlist-exe-x64 job’s needs and URL input are configured properly.


441-443: EXE arm64 allowlist job
The allowlist-exe-arm64 job’s needs and URL input are configured properly.


460-461: Slack notification for multi-arch
Updating SLACK_TITLE and SLACK_MESSAGE to reference MSI packages in plural aligns with supporting both x64 and ARM64.

Comment thread .github/workflows/win-exe.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

♻️ Duplicate comments (2)
.github/workflows/win-exe.yml (2)

58-58: Mirror JavaFX jmods download for ARM64
The download step is gated to if: matrix.arch == 'x64'. Once you declare ARM64 jmods URLs, add a parallel block or an else if for matrix.arch == 'arm64' to fetch the ARM64 jmods artifact as well.


69-69: Ensure JavaFX version check covers ARM64
The major-version validation is also gated to x64. Once ARM64 jmods are introduced, duplicate or parameterize this block for the ARM64 jmod file to catch mismatches there as well.

🧹 Nitpick comments (3)
.github/workflows/win-exe.yml (3)

62-62: Use PowerShell-native comparison operator
You’re using .equals(...) for string comparison in PowerShell. For improved readability and idiomatic style, consider:

if ((Get-FileHash jfxjmods.zip -Algorithm SHA256).Hash.ToLower() -ne "${{ env.OPENJFX_JMODS_AMD64_HASH }}") { … }

66-66: Flatten archive in-place to simplify extraction
The Move-Item recursion assumes exactly one nested level. You could simplify by using Expand-Archive -Force -DestinationPath .\jfxjmods\ and then flatten in one go, or use -Recurse plus -Force directly.


460-461: Generalize Slack notification message
The SLACK_TITLE still mentions only “MSI packages published.” Since you now publish both MSI and EXE per architecture, consider updating this to a more generic message (e.g., “Windows installers for x64 & ARM64 published”).

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4b6fa53 and 125c51f.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (10 hunks)
🔇 Additional comments (12)
.github/workflows/win-exe.yml (12)

83-83: Set Maven project version using matrix output
This step correctly applies the version from get-version. No changes needed here.


254-255: Suffix MSI installer with version and architecture
Renaming the output MSI to include ${{ needs.get-version.outputs.semVerStr }} and matrix.arch looks good and consistent with EXE naming.


274-278: Matrix definition ordering in build-exe
You’ve mirrored the dynamic runs-on selection and matrix for build-exe, which is great. Ensure the strategy.matrix block is recognized before runs-on evaluation. If you encounter context errors, move strategy: above runs-on:.

Please verify that the job executes successfully under both architectures.


346-349: Reattach signed burn engine
Using insignia.exe to reattach the signed engine is correct and mirrors best practice for WiX bundles.


360-360: Suffix EXE installer with version and architecture
Renaming the EXE to include semVerStr and matrix.arch is consistent and clear.


371-371: Upload per-arch EXE artifacts
Using name: exe-${{ matrix.arch }} ensures artifacts are distinguishable by architecture. Nice symmetry with MSI artifacts.


381-386: Expose download URLs for each arch in publish job outputs
Defining separate outputs (download-url-msi-x64, download-url-msi-arm64, etc.) is exactly what's needed for downstream allowlist jobs.


392-392: Confirm artifact merging for download-artifact
You’ve enabled merge-multiple: true to pull in all MSI and EXE artifacts at once. Please double‑check that this behaves as expected (it aggregates by name) so that softprops/action-gh-release picks up the correct files.


418-418: Invoke antivirus allowlist for MSI x64
Adding allowlist-msi-x64 with proper dependency on publish plugs into your AV whitelist flow as intended.


425-425: Invoke antivirus allowlist for MSI ARM64
Mirrors the x64 allowlist. Good.


432-432: Invoke antivirus allowlist for EXE x64
Chaining allowlist-exe-x64 after both publish and allowlist-msi-x64 ensures the correct ordering.


439-439: Invoke antivirus allowlist for EXE ARM64
Chaining allowlist-exe-arm64 after allowlist-msi-arm64 maintains consistency.

Comment thread .github/workflows/win-exe.yml Resolved
Comment thread .github/workflows/win-exe.yml Resolved
@infeo

infeo commented Apr 21, 2025

Copy link
Copy Markdown
Member

While this is nice, don't we need a openjfx arm64 release before publishing for arm64?

@purejava

purejava commented Apr 22, 2025 •

Copy link
Copy Markdown
Contributor Author

I let the build.bat/build.ps1 create MSI and exe packages with JavaFX x64 on an ARM64 machine and it worked.

Nevertheless this has to be answered more solidly.

Edit: the build.bat/build.ps1 on x64 uses the openjfx x64 release, whereas the build.bat/build.ps1 on arm64 uses the JavaFX modules contained in the locally installed JDK on the machine, the script is running on.

For the GitHub workflow that depends on what variant of a JDK 23 will be available in the runner-images and works with code signing (#3824), that runs on arm64 as well and whether that contains the JavaFX modules or not.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (1)
.github/workflows/win-exe.yml (1)

61-65: Guard JavaFX jmods download step by architecture
The checksum validation and Expand-Archive commands run unconditionally, targeting only AMD64 jmods. Wrap this entire block in an if: matrix.arch == 'x64' or parameterize it to use ARM64 variables, as noted above.

🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (2)

375-378: Improve asset URL mapping in publish outputs
Index-based asset references ([0],[1], etc.) are brittle if upload order changes. Consider filtering by asset name suffix:

download-url-msi-x64: ${{ fromJSON(steps.publish.outputs.assets).[] | select(.name.endsWith('-x64.msi')).browser_download_url }}

439-440: Enhance Slack notification to reflect both installers
The Slack title currently mentions only "MSI packages". Since EXE installers are also produced, consider updating to "Windows installers ... published." to accurately reflect both.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ac9412a and a5f4a32.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (11 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🔇 Additional comments (14)
.github/workflows/win-exe.yml (14)

18-18: Validate Java distribution 'temurin' for ARM64 JavaFX support
Ensure that the Temurin JDK on the windows-11-arm runner includes JavaFX modules—otherwise ARM64 builds will fail at the jlink step.

Please verify via a test on an ARM64 runner that java --list-modules includes javafx.*, or document that ARM64 JavaFX modules are provided by this distribution.


35-39: Matrix strategy and dynamic runner for build-msi
Using a matrix over arch: [x64, arm64] with conditional runs-on mapping (windows-latest vs. windows-11-arm) correctly enables cross-architecture builds on the appropriate GitHub-hosted runners.


81-81: Approve version setting step
Using mvn versions:set -DnewVersion=${{ needs.get-version.outputs.semVerStr }} aligns the Maven project version with your GitHub input.


247-248: Include architecture in MSI filename
Renaming the MSI to include ${{ matrix.arch }} (Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.msi) is a clear and necessary change for distinguishing builds.


258-258: Approve MSI artifact naming
Setting name: msi-${{ matrix.arch }} for the uploaded artifact matches the file rename and aids in downstream download.


266-266: Dynamic runner for build-exe
Your conditional runs-on mapping for build-exe correctly mirrors the build-msi logic, enabling ARM64 jobs on the proper runner.


267-267: Approve build-exe dependencies
Requiring get-version and build-msi ensures the EXE build has both versioning context and the MSI artifact, which is correct.


269-270: Matrix strategy for build-exe
The arch: [x64, arm64] matrix in build-exe maintains consistency with build-msi, facilitating parallel builds for both architectures.


352-352: Verify EXE filename suffix consistency
You rename the EXE to include ${{ matrix.arch }} (Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.exe). Confirm this matches the upload patterns in the publish step.


363-363: Approve EXE artifact naming
Naming the upload artifact exe-${{ matrix.arch }} aligns with the file rename and helps users distinguish architecture-specific executables.


397-402: Approve x64 MSI allowlist job
The allowlist-msi-x64 job correctly consumes the published MSI URL and inherits secrets.


404-409: Approve ARM64 MSI allowlist job
The allowlist-msi-arm64 job mirrors the x64 configuration, ensuring both installers are allowlisted.


411-416: Approve x64 EXE allowlist sequence
Chaining allowlist-exe-x64 after allowlist-msi-x64 and publish guarantees dependencies are satisfied.


418-423: Approve ARM64 EXE allowlist sequence
The allowlist-exe-arm64 job correctly depends on allowlist-msi-arm64, maintaining symmetry with the x64 path.

Comment thread .github/workflows/win-exe.yml Resolved
Comment thread .github/workflows/win-exe.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (2)
.github/workflows/win-exe.yml (2)

43-44: ⚠️ Potential issue

Missing ARM64 JavaFX jmods configuration
You only declare OPENJFX_JMODS_AMD64 and its hash. ARM64 builds will still attempt to download the x64 bundle and fail at runtime.

Define analogous variables for ARM64, e.g.:

 env:
   OPENJFX_JMODS_AMD64: 'https://..._windows-x64_bin-jmods.zip'
   OPENJFX_JMODS_AMD64_HASH: 'ee176d...'
+  OPENJFX_JMODS_ARM64: 'https://..._windows-aarch64_bin-jmods.zip'
+  OPENJFX_JMODS_ARM64_HASH: '<arm64-sha256-hash>'

Then parameterize download logic based on ${{ matrix.arch }} (see next comment).


61-65: ⚠️ Potential issue

Conditional download/unpack logic for ARM64
The download step unconditionally uses OPENJFX_JMODS_AMD64. ARM64 runners will fetch the wrong artifact.

Refactor this block to pick the correct URL and hash per architecture:

-run: |
-  curl --output jfxjmods.zip -L "${{ env.OPENJFX_JMODS_AMD64 }}"
-  if (!(Get-FileHash -Path jfxjmods.zip -Algorithm SHA256).Hash.ToLower().equals("${{ env.OPENJFX_JMODS_AMD64_HASH }}")) {
-    throw "Wrong checksum of JMOD archive downloaded from ${{ env.OPENJFX_JMODS_AMD64 }}.";
-  }
+run: |
+  URL_VAR=OPENJFX_JMODS_${{ matrix.arch == 'x64' && 'AMD64' || 'ARM64' }}
+  HASH_VAR=OPENJFX_JMODS_${{ matrix.arch == 'x64' && 'AMD64_HASH' || 'ARM64_HASH' }}
+  curl --output jfxjmods.zip -L "${{ env[$URL_VAR] }}"
+  if (!(Get-FileHash jfxjmods.zip -Algorithm SHA256).Hash.ToLower().equals("${{ env[$HASH_VAR] }}")) {
+    throw "Checksum mismatch for JMOD archive downloaded from ${{ env[$URL_VAR] }}."
+  }
 Expand-Archive -Path jfxjmods.zip -DestinationPath jfxjmods
 Get-ChildItem -Path jfxjmods -Recurse -Filter "*.jmod" | ForEach-Object { Move-Item -Path $_ -Destination $_.Directory.Parent }

This ensures correct bundles on both ARM64 and x64.

🧹 Nitpick comments (1)
.github/workflows/win-exe.yml (1)

439-442: Suggest updating Slack notification message
The Slack title and message still reference only “MSI packages”. Since you now publish both MSI and EXE per arch, consider updating it to “Installers” or listing both MSI/EXE.

Example:

SLACK_TITLE: "Installers for ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} published."
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a5f4a32 and 247c687.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (11 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🔇 Additional comments (15)
.github/workflows/win-exe.yml (15)

18-18: Verify Temurin distribution supports ARM64 JavaFX modules
You’ve switched JAVA_DIST from Zulu to Temurin. Make sure the Temurin builds you’re installing on the ARM64 runner include the JavaFX modules you need (some distributions bundle JavaFX differently).

Please confirm that actions/setup-java@v4 with distribution: 'temurin' and your specified JAVA_VERSION fetches a JDK with JavaFX jmods on both x64 and arm64.


35-39: Approve matrix build with dynamic runners
The build-msi job correctly employs a matrix over arch: [ x64, arm64 ] and dynamically selects runs-on (windows-latest vs. windows-11-arm) per architecture. This aligns with our ARM64 CI strategy and leverages the new GitHub-hosted runner.


81-81: Approve version-setting step
The Maven versions:set invocation using ${{ needs.get-version.outputs.semVerStr }} is correct and keeps the POM version in sync with your workflow inputs.


89-89: Skip: informational comment formatting
The “Remark: no compression is applied here” line is purely informational. No action needed unless you plan to revisit compression strategies.


246-247: Approve MSI renaming with arch suffix
Renaming Cryptomator-*.msi to include -${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }} ensures your artifacts are unambiguous.


258-258: Approve MSI artifact naming
Uploading with name: msi-${{ matrix.arch }} clearly distinguishes x64 vs. arm64 in the artifact store.


266-270: Approve build-exe job matrix and runners
The .exe job mirrors build-msi by using the same matrix over arch and dynamic runs-on selection with windows-11-arm. Dependencies (needs) are correctly chained.


338-342: Approve reattaching signed Burn engine
The insignia invocation now reattaches the signed engine into the MSI stub correctly. The heredoc syntax is clear and functional.


352-352: Approve EXE renaming with arch suffix
Consistent with the MSI step, renaming the EXE to include ${{ matrix.arch }} is correct.


363-363: Approve EXE artifact naming
Using name: exe-${{ matrix.arch }} aligns with your MSI artifact conventions.


373-379: Validate asset indexing for release outputs
You rely on static indices ([0], [1], [2], [3]) to map browser_download_url to each asset. This is brittle if the asset order changes.

Consider filtering by asset name in the JSON to ensure the correct URL is picked, e.g., with jq. Let me know if you’d like an example.


397-402: Approve allowlist-msi-x64 job
The ARM64 and x64 MSI allowlisting jobs correctly consume the URLs and chain dependencies.


404-409: Approve allowlist-msi-arm64 job
Same for the ARM64 MSI. Good separation of concerns.


411-417: Approve allowlist-exe-x64 job
Properly sequences after allowlist-msi-x64, ensuring both MSI and EXE are whitelisted in order.


418-423: Approve allowlist-exe-arm64 job
Correct chaining after allowlist-msi-arm64.

Comment thread .github/workflows/win-exe.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 247c687 and 101f658.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (11 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🔇 Additional comments (17)
.github/workflows/win-exe.yml (17)

18-19: Switched Java distribution to Temurin
Using the AdoptOpenJDK-derived Temurin distribution is a solid choice for up-to-date Java support across platforms.


35-39: Dynamic matrix and runner selection for MSI build
The addition of a matrix over x64/arm64 and dynamic runs-on expression aligns the build environments correctly.


81-82: Inject build version via Maven
The new mvn versions:set step ensures consistent versioning in the artifacts. Looks good.


89-89: Inline remark on compression
This is just a comment specifying no compression to improve MSI build size; no action needed.


247-248: Append version and architecture to MSI filename
Renaming the .msi to include ${{ needs.get-version.outputs.semVerStr }} and ${{ matrix.arch }} ensures unique artifact names per arch.


266-271: Dynamic matrix and runner for EXE build
Mirroring the MSI job’s matrix for EXE and using the same dynamic runs-on expression correctly targets both architectures.


338-338: Reattach signed burn engine run step
This line only adjusts formatting for the PowerShell insignia command; it doesn’t introduce an issue.


352-352: Append version and arch to EXE filename
Including version and architecture in the .exe name matches the MSI behavior and avoids overwrites during parallel builds.


363-363: Upload EXE artifact per architecture
Using name: exe-${{ matrix.arch }} aligns with the MSI artifact naming, ensuring artifacts are correctly separated by arch.


373-373: Publish job now depends on both MSI and EXE
Ensuring the publish job waits for both installer types is essential for complete releases.


384-384: Merged installer artifacts for publish
Using merge-multiple: true on actions/download-artifact simplifies gathering all MSI/EXE artifacts before releasing.


391-394: Correct file globs for release
Listing *-x64.msi, *-arm64.msi, *-x64.exe, and *-arm64.exe ensures all platform-specific assets are published.


397-402: Allowlisting MSI (x64) AV workflow
New allowlist-msi-x64 job correctly calls the AV whitelist workflow with the download-url-msi-x64 output.


404-409: Allowlisting MSI (ARM64) AV workflow
The allowlist-msi-arm64 job mirrors the x64 allowlist and correctly uses download-url-msi-arm64.


411-416: Allowlisting EXE (x64) AV workflow
Chaining allowlist-exe-x64 after MSI allowlisting is logical. Good dependency and URL usage.


418-423: Allowlisting EXE (ARM64) AV workflow
Properly sequences after the ARM64 MSI allowlist and pulls download-url-exe-arm64.


439-443: Slack notification for winget-ready
Updating the Slack title, message, and enabling MSG_MINIMAL tailors the notification.

Comment thread .github/workflows/win-exe.yml Resolved
Comment on lines +375 to +433
download-url-msi-x64: ${{ fromJSON(steps.publish.outputs.assets)[0].browser_download_url }}
download-url-msi-arm64: ${{ fromJSON(steps.publish.outputs.assets)[1].browser_download_url }}
download-url-exe-x64: ${{ fromJSON(steps.publish.outputs.assets)[2].browser_download_url }}
download-url-exe-arm64: ${{ fromJSON(steps.publish.outputs.assets)[3].browser_download_url }}

@coderabbitai coderabbitai Bot Apr 25, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fragile indexing of release assets
Relying on fixed array indices ([0], [1], [2], [3]) from action-gh-release may break if asset ordering changes.

Consider using jq to filter steps.publish.outputs.assets by name (e.g., endswith -x64.msi), so each URL is looked up deterministically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the documentation, this should work.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@purejava Thanks for sharing the documentation link. While the GitHub API does return assets, it doesn't explicitly guarantee that the order of assets will match the order specified in the files section of your workflow.

A more robust approach would be to filter assets by name pattern instead of relying on array indices. For example:

download-url-msi-x64: ${{ fromJson(steps.publish.outputs.assets) | map(select(.name | endswith("-x64.msi"))) | .[0].browser_download_url }}

Or using jq if more complex filtering is needed:

download-url-msi-x64: ${{ steps.filter_assets.outputs.msi_x64_url }}

# With a step like:
- name: Filter assets
  id: filter_assets
  run: |
    echo "msi_x64_url=$(echo '${{ steps.publish.outputs.assets }}' | jq -r '.[] | select(.name | endswith("-x64.msi")) | .browser_download_url')" >> $GITHUB_OUTPUT

This would make your workflow more resilient to potential changes in upload order or unexpected file matching patterns. Would you like me to help with implementing this approach?

Comment thread .github/workflows/win-exe.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (2)
.github/workflows/win-exe.yml (2)

35-39: Matrix strategy and dynamic runner selection look correct
You’ve converted build-msi to a matrix over arch: [x64, arm64] and dynamically pick runs-on (windows-latest vs windows-11-arm). This matches previous feedback and ensures ARM64 builds land on an ARM64 runner.


275-280: Dynamic runner applied to .exe build
Just like build-msi, the build-exe job now uses a matrix and conditionally sets runs-on. This addresses the prior gap where EXE builds were fixed to an x64 runner.

🧹 Nitpick comments (4)
.github/workflows/win-exe.yml (4)

78-86: Major JavaFX version consistency check
You extract the major version from jmod describe and pom.xml, then error out on mismatch. For robustness, consider quoting your variables in the if test, e.g.:

if [ "$POM_JFX_VERSION" -ne "$JMOD_VERSION_ARCHITECTURE" ]; then

to avoid syntax errors if either variable is empty.


347-350: Reattach signed Burn engine
Your use of insignia.exe -ab to reinsert the signed engine is correct. Confirm that tmp/engine.exe is cleaned up or overwritten on subsequent runs to avoid stale binaries.


384-387: Release asset output indexing is brittle
Relying on fixed indices ([0]…[3]) from steps.publish.outputs.assets can break if asset ordering changes. Consider filtering by asset name, e.g.:

download-url-msi-x64: ${{ fromJSON(steps.publish.outputs.assets) 
  | fromEntries 
  | .["Cryptomator-${{ needs.get-version.outputs.semVerStr }}-x64.msi"].browser_download_url }}

or use jq to select assets by name.


448-452: Slack notification updated for multiple packages
Your SLACK_TITLE, SLACK_MESSAGE, and MSG_MINIMAL: true now reflect the multi-architecture build. Confirm that rtCamp/action-slack-notify@v2 supports MSG_MINIMAL; otherwise, remove or adjust according to the action’s docs.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 101f658 and 2dbeebf.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (10 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🔇 Additional comments (16)
.github/workflows/win-exe.yml (16)

17-22: Verify Temurin Java distribution compatibility
You’ve switched JAVA_DIST from Zulu to Temurin (Adoptium), which is supported by actions/setup-java@v4. Please confirm that Temurin 23.0.2+7 on both x64 and windows-11-arm runners includes the required JavaFX modules, or that your fallback to the Liberica full JDK on ARM64 covers all JavaFX dependencies.


43-47: ARM64 JavaFX fallback defined
You supply both OPENJFX_JMODS_AMD64 + hash and LIBERICA_FULLJDK_ARM64 + hash. This addresses earlier missing ARM64 jmods. Ensure the Liberica package indeed contains the JavaFX jmods, as expected.


62-71: Conditional download of JMOD archives is correct
Your inline PowerShell checks matrix.arch to pull either the x64 jmods or the ARM64 full JDK, then verifies the SHA-256 checksum. This ensures each architecture fetches the appropriate archive.


74-74: Flattening of jmod directories
Moving .jmod files up one level after extraction is necessary because Gluon’s zip wraps them in a nested folder. This one-liner is effective.


90-90: Version set step updated
You now apply the semantic version from get-version directly via Maven’s versions:set plugin. This aligns the build artifacts with the release tag.


98-98: Doc comment retained
The remark about zip-0 compression is important for downstream MSI size improvements. No changes needed here.


255-256: Include architecture in MSI filename
Renaming the MSI to include ${{ matrix.arch }} and optional alpha/beta tags guarantees uniqueness across architectures. This matches your artifact naming strategy.


267-267: Artifact upload naming
Using name: msi-${{ matrix.arch }} for the MSI artifacts ensures they’re scoped per architecture in GitHub Actions. Good consistency.


361-361: Include architecture in EXE filename
Renaming the installer to Cryptomator-${{ version }}-${{ matrix.arch }}.exe matches your MSI naming. This consistency is important for downstream steps.


372-372: Artifact upload naming for EXE
Defining name: exe-${{ matrix.arch }} pairs nicely with the MSI naming. No changes needed.


382-382: Publish job dependencies updated
The publish job now needs both build-msi and build-exe, which is correct to ensure all artifacts exist before uploading.


400-403: File globs cover all installer variants
You updated the files: list to include *-x64.msi, *-arm64.msi, *-x64.exe, and *-arm64.exe. This ensures every architecture/type pair is uploaded.


406-410: ARM64 MSI allowlist job
The allowlist-msi-x64 job correctly chains off publish and pulls the URL from download-url-msi-x64. Good separation of concerns.


413-417: ARM64 MSI allowlist job defined
allowlist-msi-arm64 mirrors the x64 variant, ensuring ARM64 installers also hit the AV whitelist workflow.


420-424: Exe allowlist chaining
Chaining allowlist-exe-x64 after both publish and allowlist-msi-x64 guarantees that the MSI is already allowlisted before the EXE. Logical dependency chain.


427-431: ARM64 EXE allowlist chaining
Likewise, allowlist-exe-arm64 depends on publish and allowlist-msi-arm64, preserving order.

@purejava

purejava commented May 11, 2025 •

Copy link
Copy Markdown
Contributor Author

For the GitHub workflow that depends on what variant of a JDK 23 will be available in the runner-images and works with code signing (#3824), that runs on arm64 as well and whether that contains the JavaFX modules or not.

There is liberica jdk+fx, that exists for x86 and arm64. As it contains the JavaFX jmods, the download section for jmods can be dropped.

The Windows runners for x86 and arm64 differ a bit: the WiX toolset is already available in version 3.14.1 in the x86 runner, but needs to be installed for the arm64 runner. And the WiX path is not set there too.

The workflow works and completes and was tested as far as possible without the specific secret needed to publish a release:
Bildschirmfoto 2025-05-11 um 07 25 39

Link to the action run seen in the screenshot above: https://github.com/purejava/cryptomator/actions/runs/14952582067/job/42004124337

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (2)

292-303: DRY WiX_Path across all WiX steps
The WiX_Path environment variable is declared repeatedly in multiple steps. Consider moving it to the job-level env: block for both build-exe and build-msi to reduce duplication and simplify maintenance.

Also applies to: 306-318, 332-335


368-371: Map published assets to outputs by index
The outputs correctly grab the 4 artifacts in the new order. For increased resilience, you might later switch to filtering by asset name (e.g., via jq or fromJSON(...)\|map(select(.name|endswith(...)))) instead of fixed indices.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2dbeebf and 8026d5f.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (12 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🔇 Additional comments (14)
.github/workflows/win-exe.yml (14)

18-20: Switch to Liberica JDK+FX with JavaFX support
Good use of the Liberica distribution and the jdk+fx package to bundle JavaFX modules, eliminating the previous manual jmods download step.


36-40: Enable matrix build for x64 and ARM64
The build-msi job correctly adopts a matrix strategy and dynamically selects runs-on based on architecture, ensuring native execution on ARM64 runners.


46-47: Conditional WiX upgrade for ARM64
Installing WiX only on ARM64 runners addresses the missing default on windows-11-arm, keeping x64 runners lean.


56-56: Specify Java package for JDK+FX
Including java-package: ${{ env.JAVA_PACKAGE }} ensures the setup-java action installs the correct JDK variant with JavaFX modules.


73-73: Use bundled JDK jmods path
Switching --module-path to ${JAVA_HOME}/jmods relies on the JDK’s built-in modules. Please verify that the specified Liberica JDK+FX version indeed includes all required JavaFX jmods under this path.


225-226: Include architecture suffix in MSI filename
Renaming the MSI to include both version and ${{ matrix.arch }} makes the artifacts unambiguous and aligns with the upload naming conventions.


245-249: Matrix build for .exe installer
The build-exe job mirrors the MSI workflow with a matrix strategy and dynamic runner selection—consistent and correct.


251-255: Conditional WiX upgrade in .exe workflow
Upgrading WiX only on ARM64 in the EXE build maintains symmetry with the MSI job and prevents unnecessary installations on x64.


345-345: Include architecture suffix in EXE filename
Renaming the EXE similarly to the MSI ensures consistency in artifact naming and easier downstream consumption.


356-356: Upload .exe artifacts with architecture suffix
Uploading the exe-${{ matrix.arch }} artifact correctly tags the EXE builds by architecture for later steps.


366-366: Publish job depends on both build jobs
Adding both build-msi and build-exe as dependencies guarantees all installers are ready before the publish step runs.


384-388: Publish assets with architecture-specific globs
The files: patterns now include both -x64 and -arm64 for MSI and EXE, ensuring all artifacts (and their signatures) are uploaded.


390-396: Antivirus allowlisting workflows per architecture and installer type
Splitting the allowlist jobs (msi-x64, msi-arm64, exe-x64, exe-arm64) with proper needs chains ensures each artifact is processed in order. Configuration looks correct.

Also applies to: 397-403, 404-410, 411-416


432-433: Update Slack notification for winget release
The Slack SLACK_TITLE and SLACK_MESSAGE now reference MSI packages (plural) and use MSG_MINIMAL, reflecting the new multi-arch scenario.

Also applies to: 436-436

Comment thread .github/workflows/win-exe.yml Outdated
strategy:
matrix:
arch: [ x64, arm64 ]
runs-on: ${{ matrix.arch == 'x64' && 'windows-latest' || 'windows-11-arm' }}

@overheadhunter overheadhunter May 12, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid these kinds of conditional statements (in other places as well). Rather define more matrix params.

For example, see lines 28ff in https://github.com/cryptomator/cryptomator/blob/develop/.github/workflows/appimage.yml

@purejava purejava May 13, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick review @overheadhunter. I made the adjustments, but introduced a bug:

Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run

I suspect, that coderabbit points to the solution (see next comment), but need to look into it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, the matrix setup is fixed, and this PR is ready for a further review @overheadhunter.

The action run for testing purposes can be found here:
https://github.com/purejava/cryptomator/actions/runs/15001569529

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (2)

306-307: Factor out repeated WiX_Path environment definitions
Multiple steps redefine env: WiX_Path: 'C:/Program Files (x86)/WiX Toolset v3.14/'. Consider moving this to the job-level env: block to reduce duplication:

 jobs:
   build-exe:
+    env:
+      WiX_Path: 'C:/Program Files (x86)/WiX Toolset v3.14/'
     steps:
       - name: Compile to wixObj file
-        env:
-          WiX_Path: 'C:/Program Files (x86)/WiX Toolset v3.14/'

Also applies to: 315-316, 321-322, 337-338


372-375: Make release output retrieval more robust
Relying on fixed indices when accessing steps.publish.outputs.assets can break if the upload order changes. Consider filtering by asset name:

download-url-msi-x64: ${{ fromJson(steps.publish.outputs.assets) | fromJson | map(select(.name | endswith('-x64.msi'))) | first | .browser_download_url }}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8026d5f and a394fb6.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (12 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🪛 actionlint (1.7.4)
.github/workflows/win-exe.yml

44-44: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


255-255: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


264-264: property "executable-suffix" is not defined in object type {arch: string; os: string}

(expression)


349-349: property "executable-suffix" is not defined in object type {arch: string; os: string}

(expression)


360-360: property "executable-suffix" is not defined in object type {arch: string; os: string}

(expression)

🔇 Additional comments (14)
.github/workflows/win-exe.yml (14)

18-20: Use consistent Java distribution variables
The new environment variables JAVA_DIST, JAVA_VERSION, and JAVA_PACKAGE clearly parameterize the JDK setup and ensure both MSI and EXE jobs use Liberica with JavaFX. This enhances maintainability by centralizing JDK configuration.


59-59: Ensure java-package input is supported
You’ve added java-package: ${{ env.JAVA_PACKAGE }} to the setup-java step. Action actions/setup-java@v4 supports this new input, so this is correctly configured.


63-63: Dynamic version injection is correct
Using mvn versions:set -DnewVersion=${{ needs.get-version.outputs.semVerStr }} aligns the project POM with the release tag. Good use of the get-version output.


76-76: Simplified JavaFX jmods handling works with Liberica JDK
Relying on ${JAVA_HOME}/jmods and removing the explicit download step is valid since Liberica JDK with JavaFX includes the necessary modules.


228-230: Installer renaming includes architecture suffix
Renaming the MSI file to include both version and ${{ matrix.executable-suffix }} ensures clear artifact naming for x64 and ARM64.


248-249: Dynamic runner selection for EXE builds
Mirroring the MSI job, the EXE job now uses runs-on: ${{ matrix.os }} to pick the correct Windows runner per architecture. This resolves the previous ARM64 runner mismatch.


257-259: Explicit WiX Toolset installation
Adding a dedicated step choco install wixtoolset --version 3.14.1 on both MSI and EXE jobs ensures the required WiX version is available on the ARM64 runner.


264-265: Artifact download path matches upload name
Using name: msi-${{ matrix.executable-suffix }} and targeting it to the dist/win/bundle/resources folder is consistent with the upload from the MSI job.

🧰 Tools
🪛 actionlint (1.7.4)

264-264: property "executable-suffix" is not defined in object type {arch: string; os: string}

(expression)


272-272: Consistent JDK setup in EXE job
Including java-package: ${{ env.JAVA_PACKAGE }} here as well maintains parity with the MSI build, ensuring JavaFX support.


349-349: Exe installer renaming includes architecture suffix
Renaming the EXE to Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.executable-suffix }}.exe matches the MSI naming convention and promotes consistency.

🧰 Tools
🪛 actionlint (1.7.4)

349-349: property "executable-suffix" is not defined in object type {arch: string; os: string}

(expression)


360-361: Per-architecture artifact upload names
Uploading artifacts as exe-${{ matrix.executable-suffix }} aligns with the download step and supports clear distinction in the workflow summary UI.

🧰 Tools
🪛 actionlint (1.7.4)

360-360: property "executable-suffix" is not defined in object type {arch: string; os: string}

(expression)


388-392: Publish file patterns updated correctly
The glob patterns now include *-x64.msi, *-arm64.msi, *-x64.exe, and *-arm64.exe, matching the renamed artifacts.


394-420: AV allowlist jobs are correctly parameterized per architecture
The four allowlist-* jobs use the respective download URLs and maintain proper needs dependencies, ensuring the antivirus whitelist process executes in sequence.


436-440: Slack notification updated for multi-arch
Slack title and message now reference "MSI packages" in plural, and MSG_MINIMAL: true reduces payload noise. Confirm that the channel formatting meets team expectations.

Comment thread .github/workflows/win-exe.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (1)
.github/workflows/win-exe.yml (1)

251-252: Apply dynamic runner to build-exe job
The build-exe job now uses runs-on: ${{ matrix.os }}, mirroring build-msi and guaranteeing ARM64 builds execute on the correct runner.

🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (2)

303-346: DRY up WiX path environment variable declarations
The WiX_Path is repeatedly defined in step-level env: blocks for candle.exe, light.exe, and insignia.exe. Consider moving WiX_Path into a job-level env: under build-exe to reduce duplication and ease future maintenance.


380-383: Avoid brittle asset indexing in publish outputs
Relying on hardcoded indices ([0]…[3]) in steps.publish.outputs.assets can break if upload order changes. Consider filtering the JSON by asset name (e.g., endswith -x64.msi) via fromJson and jq to deterministically extract each URL.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a394fb6 and f3258cd.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (12 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🪛 actionlint (1.7.4)
.github/workflows/win-exe.yml

45-45: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


260-260: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

🔇 Additional comments (15)
.github/workflows/win-exe.yml (15)

18-20: Switch to Liberica JDK with JavaFX modules
The environment variables now use Liberica (JAVA_DIST: 'liberica', JAVA_VERSION: '23.0.2+9') and specify JAVA_PACKAGE: 'jdk+fx', ensuring JavaFX jmods are bundled in the JDK.


36-46: Enable matrix build for x64 and ARM64
The build-msi job now dynamically sets runs-on: ${{ matrix.os }} and defines a matrix with arch, os, and executable-suffix for both x64 and arm64. This correctly targets the appropriate Windows runners.

🧰 Tools
🪛 actionlint (1.7.4)

45-45: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


52-54: Conditionally install WiX toolset on ARM64
Installing the WiX toolset only when matrix.arch == 'arm64' ensures the ARM64 runner (which lacks WiX) is provisioned correctly without affecting x64 builds.


62-62: Specify Java package to include JavaFX modules
Adding java-package: ${{ env.JAVA_PACKAGE }} to actions/setup-java@v4 ensures the JDK setup includes JavaFX, removing the need for manual jmods handling or downloads.


66-66: Set Maven project version from workflow input
Using mvn versions:set with ${{ needs.get-version.outputs.semVerStr }} correctly injects the release version into the POM before packaging.


79-79: Use bundled JDK jmods instead of separate download
Pointing --module-path to ${JAVA_HOME}/jmods leverages the JavaFX modules included in the JDK, simplifying the build and eliminating external dependencies.


231-232: Rename MSI to include version and architecture
Renaming the MSI installer to Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.executable-suffix }}.msi ensures the artifact clearly reflects both the release version and target architecture.


263-267: Conditionally install WiX toolset on ARM64 for EXE build
Mirroring the MSI step, this ensures the ARM64 runner gets WiX installed when matrix.arch == 'arm64', without impacting x64 workflows.


272-272: Use architecture-specific artifact names for MSI
Setting name: msi-${{ matrix.executable-suffix }} in both download and upload steps guarantees each architecture’s MSI artifact is uniquely named.


280-280: Include JavaFX package in EXE build setup-java
Specifying java-package: ${{ env.JAVA_PACKAGE }} here ensures the EXE installer build has JavaFX support without additional manual steps.


357-358: Rename EXE to include version and architecture
Renaming the EXE installer to Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.executable-suffix }}.exe aligns it with the MSI naming convention.


368-368: Use architecture-specific EXE artifact names
Uploading the EXE artifacts under name: exe-${{ matrix.executable-suffix }} provides clear separation between x64 and ARM64 builds.


396-399: Correct file glob patterns for release assets
The updated file patterns (*-x64.msi, *-arm64.msi, *-x64.exe, *-arm64.exe) now accurately match the renamed artifacts and ensure all installers are published.


402-428: New antivirus allowlist jobs for each installer
The four allowlist-* jobs correctly chain off publish (and prior allowlist jobs) to sequentially whitelist each installer on both architectures. This segmentation improves clarity and failure isolation.


444-448: Update Slack notification for multiple MSI packages
Adjusting SLACK_TITLE to reference "MSI packages" and enabling MSG_MINIMAL: true provides a concise notification reflecting the multi-arch build.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (2)
.github/workflows/win-exe.yml (2)

42-52: Dynamic runner selection per architecture
Using runs-on: ${{ matrix.os }} with windows-latest/windows-11-arm and an explicit matrix include guarantees jobs run on the appropriate Windows x64 or ARM64 runner.

🧰 Tools
🪛 actionlint (1.7.7)

51-51: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


257-257: Dynamic runner selection for EXE build
Mirroring the MSI job with runs-on: ${{ matrix.os }} correctly supports both Windows x64 and ARM64.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f3258cd and 66411d1.

⛔ Files ignored due to path filters (1)
  • dist/win/build.ps1 is excluded by !**/dist/**
📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (11 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🪛 actionlint (1.7.7)
.github/workflows/win-exe.yml

51-51: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


266-266: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

🔇 Additional comments (19)
.github/workflows/win-exe.yml (19)

15-20: Review trigger configuration for push events
Ensure the added push trigger on changes to the workflow file and dist/win/** aligns with your CI strategy and doesn’t cause excessive runs on routine distribution updates.


63-63: Include JavaFX modules via setup-java
The new java-package: ${{ env.JAVA_PACKAGE }} ensures JDK+FX is installed, removing the need for external jmods.


85-85: Leverage JDK-bundled jmods
Switching to --module-path "${JAVA_HOME}/jmods" aligns with the bundled JavaFX modules in the JDK and simplifies your build.


238-238: Add architecture suffix to MSI filename
Renaming the MSI to include ${{ matrix.executable-suffix }} clearly differentiates x64 and ARM64 builds.


249-249: Parametrize MSI artifact upload
Using name: msi-${{ matrix.executable-suffix }} ensures the uploaded artifact corresponds to the renamed installer.


270-274: Uniform WiX tool installation
Installing WiX as a dotnet global tool standardizes the setup. Verify that the windows-11-arm runner includes the required .NET tooling so this step won’t fail on ARM64.


308-322: Simplify EXE bundling with wix build
Switching from manual candle/light commands to wix build with extensions enhances readability and maintainability.


325-325: Detach burn engine for signing
The wix burn detach step correctly extracts the engine for separate code-signing.


337-338: Reattach signed burn engine
Using wix burn reattach to merge the signed engine back into the bundle is spot on.


348-348: Add architecture suffix to EXE filename
Renaming the EXE with ${{ matrix.executable-suffix }} ensures clarity between x64 and ARM64 outputs.


359-359: Parametrize EXE artifact upload
The name: exe-${{ matrix.executable-suffix }} matches the renamed installer, avoiding mismatches.


371-374: Publish step outputs ordering
Mapping download URLs by index relies on the file ordering defined in the files: list. Ensure that list is never reordered to keep indices in sync.


388-391: Update release upload globs for architecture suffix
The corrected patterns (*-x64.msi, *-arm64.msi, *-x64.exe, *-arm64.exe) now match the renamed artifacts and will publish both installer types for each arch.


394-400: Add MSI x64 allowlist job
The allowlist-msi-x64 job correctly depends on publish and uses the x64 MSI URL for AV whitelist testing.


401-407: Add MSI ARM64 allowlist job
The allowlist-msi-arm64 job runs after publish and uses the ARM64 MSI URL, covering both architectures.


408-414: Add EXE x64 allowlist job
Chaining allowlist-exe-x64 after allowlist-msi-x64 and referencing the correct EXE URL completes the x64 AV whitelist workflow.


415-421: Add EXE ARM64 allowlist job
The allowlist-exe-arm64 job depends on allowlist-msi-arm64 and targets the ARM64 EXE, finalizing the allowlist matrix.


436-437: Update Slack notification for multi-package release
The new SLACK_TITLE and SLACK_MESSAGE accurately describe multiple MSI packages and link to the Winget workflow.


440-440: Add minimal Slack message flag
Setting MSG_MINIMAL: true will reduce notification verbosity, which is useful for concise alerts.

Comment thread .github/workflows/win-exe.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (2)
.github/workflows/win-exe.yml (2)

402-405: ⚠️ Potential issue

Avoid brittle asset indexing in publish outputs
Relying on fixed indices from fromJson(steps.publish.outputs.assets) may break if upload order shifts. Filter by asset name for deterministic URLs:

- download-url-msi-x64: ${{ fromJson(steps.publish.outputs.assets)[0].browser_download_url }}
- download-url-msi-arm64: ${{ fromJson(steps.publish.outputs.assets)[1].browser_download_url }}
+ download-url-msi-x64: ${{ fromJson(steps.publish.outputs.assets) | map(select(.name | endsWith("-x64.msi"))) | first | .browser_download_url }}
+ download-url-msi-arm64: ${{ fromJson(steps.publish.outputs.assets) | map(select(.name | endsWith("-arm64.msi"))) | first | .browser_download_url }}

24-24: ⚠️ Potential issue

Align JAVA_DIST with PR objective to use Liberica JDK
The PR summary indicates switching to Liberica (BellSoft) JDK with bundled JavaFX modules, but JAVA_DIST remains zulu. Please update it accordingly:

 env:
-  JAVA_DIST: 'zulu'
+  JAVA_DIST: 'bellsoft'
🧹 Nitpick comments (1)
.github/workflows/win-exe.yml (1)

467-468: Slack notification title could be broadened
The title references only MSI packages, but EXE installers are also published. Consider updating to “Windows installers” or listing both types.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 66411d1 and b391209.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (14 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🪛 actionlint (1.7.7)
.github/workflows/win-exe.yml

52-52: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


298-298: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

🔇 Additional comments (4)
.github/workflows/win-exe.yml (4)

15-20: Push trigger path filters look good
Restricts builds to relevant workflow and distribution changes while ignoring dependabot.


105-110: Dynamic jmod path detection is solid
The check for JEP-493 support and conditional prepending of the JDK jmods path ensures compatibility across Java versions.


141-141: Native access flag addition is correct
Adding --enable-native-access=javafx.graphics,… aligns with the updated module requirements.


269-271: Installer renaming with architecture suffix is correct
Incorporating matrix.executable-suffix into the MSI filename ensures unique artifacts per architecture.

Comment thread .github/workflows/win-exe.yml Resolved
@purejava

purejava commented Jun 4, 2025

Copy link
Copy Markdown
Contributor Author

I've taken over the latest changes from develop regarding WiX 6.0.0 and JavaFX 24.

First, I thought easiest would be to use zulu 24.0.1+9 jdk+fx and so be able to skip the JMods download, but there is no such jdk+fx Java version on the runner, see: https://github.com/purejava/cryptomator/actions/runs/15441547267/job/43460337857

Run actions/setup-java@v4
  with:
    distribution: zulu
    java-version: 24.0.1+9
    java-package: jdk+fx
    check-latest: true
    cache: maven
    server-id: github
    server-username: GITHUB_ACTOR
    server-password: GITHUB_TOKEN
    overwrite-settings: true
    job-status: success
    token: ***
  env:
    JAVA_DIST: zulu
    JAVA_VERSION: 24.0.1+9
    JAVA_PACKAGE: jdk+fx
    WINFSP_MSI: https://github.com/winfsp/winfsp/releases/download/v2.0/winfsp-2.0.23075.msi
    WINFSP_UNINSTALLER: https://github.com/cryptomator/winfsp-uninstaller/releases/latest/download/winfsp-uninstaller.exe
    LOOPBACK_ALIAS: cryptomator-vault
    WIN_CONSOLE_FLAG: 
Installed distributions
  Trying to resolve the latest version from remote
  Error: Could not find satisfied version for semver 24.0.1+9.

So I re-included the JMods download, but this time there is no zulu 24.0.1+9 jdk for ARM, see: https://github.com/purejava/cryptomator/actions/runs/15441869065/job/43461411449

Run actions/setup-java@v4
  with:
    distribution: zulu
    java-version: 24.0.1+9
    check-latest: true
    cache: maven
    java-package: jdk
    server-id: github
    server-username: GITHUB_ACTOR
    server-password: GITHUB_TOKEN
    overwrite-settings: true
    job-status: success
    token: ***
  env:
    JAVA_DIST: zulu
    JAVA_VERSION: 24.0.1+9
    OPENJFX_JMODS_AMD64: https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_windows-x64_bin-jmods.zip
    OPENJFX_JMODS_AMD64_HASH: f13d17c7caf88654fc835f1b4e75a9b0f34a888eb8abef381796c0002e63b03f
    WINFSP_MSI: https://github.com/winfsp/winfsp/releases/download/v2.0/winfsp-2.0.23075.msi
    WINFSP_UNINSTALLER: https://github.com/cryptomator/winfsp-uninstaller/releases/latest/download/winfsp-uninstaller.exe
    LOOPBACK_ALIAS: cryptomator-vault
    WIN_CONSOLE_FLAG: 
Installed distributions
  Trying to resolve the latest version from remote
  Error: Could not find satisfied version for semver 24.0.1+9. 
  Available versions: 21.0.7+6, 19.0.0+36, 18.0.2+1, 17.0.15+6, 17.0.3+7, 16.0.2+7, 21.0.6+7, 21.0.5+11, 21.0.4+7, 21.0.3+9, 18.0.2+9, 18.0.1+10, 18.0.0+37, 17.0.14+7, 17.0.13+11, 17.0.12+7, 17.0.11+9, 17.0.10+7, 17.0.9+8, 17.0.8+1, 17.0.8+7, 17.0.7+7, 17.0.6+10, 17.0.5+8, 17.0.4+1, 17.0.4+8, 17.0.2+8, 17.0.1+12, 17.0.0+35, 16.0.1+9

I think we have to wait for Java 24 ARM being available on the runner.

@purejava purejava changed the title Build installers and a build script for Windows ARM64 Build installers for Windows ARM64 Jun 4, 2025
@overheadhunter

Copy link
Copy Markdown
Member

I think we have to wait for Java 24 ARM being available on the runner.

For now, we need to stick with the Liberica JDK for arm.

@purejava

purejava commented Jun 7, 2025

Copy link
Copy Markdown
Contributor Author

For now, we need to stick with the Liberica JDK for arm.

@overheadhunter Done. I rebased the "Support for Windows ARM64" changes as one commit on top of the current develop. And I'll force push these to the branch that forms this PR right afterward.

The workflow now works too and completes and was tested as far as possible without the specific secret needed to publish a release:

Bildschirmfoto 2025-06-07 um 10 05 37

Link to the action run seen in the screenshot above:
https://github.com/purejava/cryptomator/actions/runs/15505777109/job/43660434603

This should be it and so ready for being checked from you again. Thank you for that!

@infeo Thank you very much for all the Java 24 and WiX 6 changes you have done!

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (2)

428-433: Fragile asset indexing in publish outputs
Relying on fixed array indices ([0], [1], etc.) may break if the upload order changes. Consider filtering the JSON by asset name (e.g., endswith -x64.msi) rather than positional indexing for more resilience.


495-497: Broaden Slack notification message
The SLACK_TITLE and SLACK_MESSAGE reference only MSI packages, but you’re also publishing EXE installers. Consider updating the text to “installers” or explicitly call out EXE packages, e.g.:

SLACK_TITLE: "Windows installers of ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} published."
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b391209 and 9397cbf.

⛔ Files ignored due to path filters (1)
  • dist/win/build.ps1 is excluded by !**/dist/**
📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (12 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🪛 actionlint (1.7.7)
.github/workflows/win-exe.yml

56-56: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


315-315: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

🔇 Additional comments (14)
.github/workflows/win-exe.yml (14)

26-29: Verify ARM64 JDK distribution ID
You’ve introduced ARM64-specific variables (JAVA_DIST_ARM64: 'liberica', etc.) which is great. Please confirm that actions/setup-java@v4 supports the liberica distribution identifier on ARM64 runners—otherwise you may need to switch to the recognized bellsoft ID.


47-57: Matrix strategy for multi-arch builds
Converting both MSI and EXE jobs to use a matrix over arch with corresponding os and executable-suffix is a clean approach. windows-latest and windows-11-arm will correctly target x64 and ARM64 runners.

🧰 Tools
🪛 actionlint (1.7.7)

56-56: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


87-96: Conditional download of JavaFX jmods
Good use of if: matrix.arch == 'x64' to skip the jmods download on ARM64, relying instead on the bundled modules in Liberica. The PowerShell checksum validation and extraction look solid.


98-106: Skip version check for ARM64
The added if: matrix.arch == 'x64' guard around the JMOD vs. POM version check is correct—ARM64 builds won’t have an OpenJFX jmod to validate.


112-112: Version setting step
The mvn versions:set invocation ensures the build artifacts carry the right semver. This aligns with the get-version job output.


306-316: Matrix strategy for EXE installer
Mirroring the MSI job’s matrix structure in the build-exe job is consistent and looks correct.

🧰 Tools
🪛 actionlint (1.7.7)

315-315: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


327-328: Consistent artifact naming for MSI download
Using name: msi-${{ matrix.executable-suffix }} to pull the correct MSI artifact in the EXE workflow is spot on.


331-347: Conditional Java setup in EXE job
The architecture-guarded setup-java steps for x64 vs. ARM64 replicate the MSI workflow and ensure the proper JDK and JavaFX packaging are installed. This supports the licensing and packaging steps that follow.


407-408: Include suffix in EXE filename
Renaming the .exe artifact to include both the version and ${{ matrix.executable-suffix }} is correct and will prevent name collisions between architectures.


447-450: Publish file patterns match artifacts
The glob patterns (*-x64.msi, *-arm64.msi, *-x64.exe, *-arm64.exe) align with the renamed outputs and will correctly attach installers and signatures to the release.


453-459: MSI x64 allowlist flow
The allowlist-msi-x64 job correctly depends on publish and uses the x64 MSI URL, isolating antivirus whitelisting per architecture.


460-466: MSI ARM64 allowlist flow
The allowlist-msi-arm64 job mirrors the x64 flow for ARM64. No issues here.


467-473: EXE x64 allowlist flow
Chaining the allowlist-exe-x64 job after allowlist-msi-x64 ensures sequential whitelisting. Looks good.


474-480: EXE ARM64 allowlist flow
Same pattern applied for ARM64. Consistency is maintained.

Comment thread .github/workflows/win-exe.yml Resolved
Comment thread .github/workflows/win-exe.yml Resolved
@purejava

purejava commented Jun 7, 2025

Copy link
Copy Markdown
Contributor Author

The PR description was updated to provide info about the changes.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (2)

274-275: Append architecture suffix to MSI filename
Renaming the MSI to include ${{ matrix.arch }} guarantees distinct artifacts by architecture. Consider using a hyphen (-x64/-arm64) instead of an underscore to match the EXE naming convention.


413-418: Deterministic release asset indexing
Mapping the four download-URL outputs to the exact asset order (x64.msi, arm64.msi, x64.exe, arm64.exe) aligns with the files: listing. For added robustness, you may later filter by asset name instead of relying solely on index positions.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9397cbf and ab10a13.

⛔ Files ignored due to path filters (1)
  • dist/win/build.ps1 is excluded by !**/dist/**
📒 Files selected for processing (2)
  • .github/workflows/win-exe.yml (13 hunks)
  • .github/workflows/winget.yml (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🪛 actionlint (1.7.7)
.github/workflows/win-exe.yml

52-52: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


306-306: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Build .msi Installer (x64, windows-latest, zulu, 24.0.1+9, jdk)
  • GitHub Check: Build .msi Installer (arm64, windows-11-arm, liberica, 24.0.1+11, jdk+fx)
🔇 Additional comments (14)
.github/workflows/winget.yml (1)

26-26: Restrict winget installer regex to x64
Updating the installers-regex to '-x64\.msi$' ensures only the 64-bit MSI produced by the matrix build is submitted to winget-pkgs.

.github/workflows/win-exe.yml (13)

41-55: Use architecture-specific runner and Java distribution matrix
Switching to a matrix with runs-on: ${{ matrix.os }} and per-arch Java settings (java-dist, java-version, java-package) correctly targets Windows x64 and ARM64 builds on appropriate runners.

🧰 Tools
🪛 actionlint (1.7.7)

52-52: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


75-84: Conditionally download JavaFX jmods only on x64
Adding if: matrix.arch == 'x64' to the Gluon download step ensures ARM64 uses the JDK-bundled JavaFX modules, preventing unnecessary or failed downloads on ARM.


86-98: Guard JavaFX version validation by architecture
Applying the same if: matrix.arch == 'x64' to the JMOD vs. POM version check avoids irrelevant validation on ARM64 builds.


100-100: Synchronize Maven project version with release input
Setting the new project version from needs.get-version.outputs.semVerStr remains correct.


286-290: Upload architecture-specific MSI artifacts
Uploading msi-${{ matrix.arch }} along with the matching .msi and .asc files correctly captures both the installer and its signature per architecture.


295-311: Matrix-driven EXE build configuration
Mirroring the MSI job, the EXE job now uses runs-on: ${{ matrix.os }} and includes entries for x64/ARM64 with executable-suffix and distribution-specific JDK packages.

🧰 Tools
🪛 actionlint (1.7.7)

306-306: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


321-322: Download matching MSI artifact for EXE bundling
The actions/download-artifact step correctly pulls in the previously built MSI per architecture for bundling into the EXE.


325-330: Reuse matrix Java setup for EXE job
Leveraging the same matrix.java-dist, matrix.java-version, and matrix.java-package in the EXE job ensures consistent JDK and JavaFX setups across both installer formats.


392-392: Add executable suffix to EXE filename
Renaming the EXE with ${{ matrix.executable-suffix }} produces unique, per-architecture executables for downstream publishing.


403-407: Upload architecture-specific EXE artifacts
Defining name: exe-${{ matrix.executable-suffix }} and including the .exe and .asc paths correctly captures the EXE installers and their signatures.


432-436: Specify architecture-specific upload patterns
Listing each glob (*-x64.msi, *-arm64.msi, *-x64.exe, *-arm64.exe) ensures all built artifacts are published in the expected order.


438-464: Chain antivirus allowlist jobs per artifact
Defining separate allowlist-msi-* and allowlist-exe-* jobs with proper dependencies enforces sequential whitelisting and avoids race conditions.


480-481: Update Slack notification for winget readiness
Adjusting the Slack title and message to reference multiple MSI packages and link to the winget workflow accurately reflects the multi-architecture build outcome.

@infeo

infeo commented Jun 11, 2025 •

Copy link
Copy Markdown
Member

@purejava I tweaked the ci script a little to dedup code and fixed the winget release

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ab10a13 and 9a0c03e.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (14 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🪛 actionlint (1.7.7)
.github/workflows/win-exe.yml

52-52: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


306-306: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Build .msi Installer (x64, windows-latest, zulu, 24.0.1+9, jdk)
  • GitHub Check: Build .msi Installer (arm64, windows-11-arm, liberica, 24.0.1+11, jdk+fx)
🔇 Additional comments (8)
.github/workflows/win-exe.yml (8)

41-55: Matrix-based MSI build configuration is correctly implemented

Using matrix.include to explicitly map arch, os, and Java distribution ensures each job has complete context. The dynamic runs-on setting and Java setup via matrix variables align with the PR objectives.

🧰 Tools
🪛 actionlint (1.7.7)

52-52: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


75-84: Guard JavaFX jmods download to x64 builds

The if: matrix.arch == 'x64' condition correctly skips the Gluon jmods download on ARM64, relying on the bundled JavaFX modules. This prevents unnecessary downloads and checksum failures on ARM64 runners.


85-95: Conditionally verify JFX version only for x64 jmods

Adding if: matrix.arch == 'x64' around the major-version consistency check ensures ARM64 builds don’t run this validation against missing jmods. The implementation is sound.


274-276: Include architecture suffix in MSI filename

Appending -${{ matrix.arch }} to the MSI filename guarantees unique artifacts for x64 and ARM64, avoiding conflicts during upload.


294-310: Matrix-based EXE build configuration mirrors MSI setup

The EXE build uses an explicit matrix.include for arch, os, and Java parameters with dynamic runs-on. This is consistent, clear, and aligns with the MSI strategy.

🧰 Tools
🪛 actionlint (1.7.7)

306-306: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


325-330: Setup Java dynamically in EXE job

Using actions/setup-java with matrix variables for distribution, version, and package type ensures both architectures get the correct JDK and JavaFX modules. This matches the overall workflow design.


392-392: Include executable suffix in EXE filename

Adding ${{ matrix.executable-suffix }} to the EXE filename prevents name collisions and clearly identifies architecture per artifact.


478-479: Update Slack notification for multi-arch builds

The Slack title and message now reference "MSI packages" and link to the winget workflow, reflecting the multi-architecture output. This aligns with the new build jobs.

Comment thread .github/workflows/win-exe.yml Resolved
Comment thread .github/workflows/win-exe.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (2)

432-436: Tighten glob patterns for release files
Consider using explicit dash separators (*-x64.msi, *-arm64.msi, etc.) to avoid accidental matches (e.g., files named Cryptomatorx64.msi), improving pattern clarity.


480-481: Slack notification text could be more inclusive
The title references only “MSI packages”, but EXE artifacts are also generated. Consider renaming to “Windows installers” or updating the message to reflect both MSI and EXE.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9a0c03e and 8e162c2.

📒 Files selected for processing (1)
  • .github/workflows/win-exe.yml (13 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/win-exe.yml (3)
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Learnt from: purejava
PR: cryptomator/cryptomator#3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Learnt from: infeo
PR: cryptomator/cryptomator#3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
🪛 actionlint (1.7.7)
.github/workflows/win-exe.yml

52-52: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)


306-306: label "windows-11-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

🔇 Additional comments (12)
.github/workflows/win-exe.yml (12)

41-41: Dynamic runner mapping for MSI job is correct
Using runs-on: ${{ matrix.os }} ensures x64 and ARM64 builds run on appropriate hosted runners per your matrix.


75-83: Conditional JavaFX jmods download scoped to x64 only
The if: matrix.arch == 'x64' guard ensures ARM64 builds use the JDK-bundled JavaFX modules, avoiding unnecessary downloads.


86-94: JavaFX version consistency check is applied only for x64
The conditional block correctly verifies JFX versions for the downloaded jmods without affecting ARM64 workflows.


116-116: Minor comment added for jlink compression settings; no action needed.


274-276: Include architecture suffix in MSI filenames
The mv … Cryptomator-${{ … }}-${{ matrix.arch }}.msi command now correctly avoids filename collisions between x64 and ARM64 builds.


286-289: Artifact naming reflects architecture
Uploading with name: msi-${{ matrix.arch }} makes it clear which artifact corresponds to which build matrix entry.


294-294: Dynamic runner mapping for EXE job is correct
Leveraging runs-on: ${{ matrix.os }} here mirrors the MSI job and ensures proper ARM64 execution.


403-407: Artifact naming for EXE aligns with suffix
Uploading with name: exe-${{ matrix.executable-suffix }} correctly distinguishes the build outputs.


438-443: MSI allowlist job invocation is correct
The new allowlist-msi-x64 reusable workflow is properly wired with needs and url inputs.


445-450: ARM64 MSI allowlist step is configured
allowlist-msi-arm64 mirrors the x64 job and correctly consumes the ARM64 download URL.


452-457: EXE x64 allowlist dependency chain is valid
Chaining on allowlist-msi-x64 before allowlist-exe-x64 enforces proper sequencing.


459-464: EXE ARM64 allowlist dependency chain is valid
The needs: [publish, allowlist-msi-arm64] ensures the ARM64 EXE is whitelisted only after the MSI step.

Comment on lines +415 to +418
download-url-msi-x64: ${{ fromJSON(steps.publish.outputs.assets)[0].browser_download_url }}
download-url-msi-arm64: ${{ fromJSON(steps.publish.outputs.assets)[1].browser_download_url }}
download-url-exe-x64: ${{ fromJSON(steps.publish.outputs.assets)[2].browser_download_url }}
download-url-exe-arm64: ${{ fromJSON(steps.publish.outputs.assets)[3].browser_download_url }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Avoid fragile asset indexing by filtering
Relying on fixed array indices in fromJSON(steps.publish.outputs.assets)[0]…[3] can break if ordering changes. Use a filter on .name (e.g., map(select(.name|endswith("-x64.msi")))) to select assets deterministically.

🤖 Prompt for AI Agents
In .github/workflows/win-exe.yml around lines 415 to 418, the current code uses
fixed array indices to access assets, which is fragile if the order changes.
Replace the indexed access with a filter that selects assets by matching their
.name property, such as using a map or select function to find assets ending
with "-x64.msi" or similar patterns. This ensures the correct assets are chosen
deterministically regardless of their order in the array.

Comment thread .github/workflows/win-exe.yml Resolved
@infeo
infeo merged commit 2afd8d0 into cryptomator:develop Jun 11, 2025
@infeo

infeo commented Jun 11, 2025

Copy link
Copy Markdown
Member

@purejava Thank your for the contribution!

@infeo infeo added this to the next milestone Jun 11, 2025
@infeo infeo mentioned this pull request Jun 11, 2025
2 tasks done
@purejava

Copy link
Copy Markdown
Contributor Author

@purejava I tweaked the ci script a little to dedup code and fixed the winget release

@infeo Thanks for both!

@coderabbitai coderabbitai Bot mentioned this pull request Oct 14, 2025
infeo added a commit that referenced this pull request Oct 14, 2025
Closes #3902. References #3453 and references #3825
This was referenced Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants