You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable code signing when workflows run from forks
- Skip Mac/Win code signing and Apple notarization only if PR comes from a fork
- Disable workflows entirely if the user enabled Github Actions in
their fork repo
- Add steps to help Mac users to test their forked code in BUILDING.md
Copy file name to clipboardExpand all lines: BUILDING.md
+16
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,22 @@ This project is built on [GitHub Actions](https://github.com/arduino/arduino-ide
73
73
git push origin 1.2.3
74
74
```
75
75
76
+
## Notes for macOS contributors
77
+
Beginning in macOS 10.14.5, the software [must be notarized to run](https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution). The signing and notarization processes for the Arduino IDE are managed by our Continuous Integration (CI) workflows, implemented with GitHub Actions. On every push and pull request, the Arduino IDE is built and saved to a workflow artifact. These artifacts can be used by contributors and beta testers who don't want to set up a build system locally.
78
+
For security reasons, signing and notarization are disabled for workflow runs for pull requests from forks of this repository. This means that macOS will block you from running those artifacts.
79
+
Due to this limitation, Mac users have two options for testing contributions from forks:
80
+
81
+
### The Safe approach (recommended)
82
+
83
+
Follow [the instructions above](#build-from-source) to create the build environment locally, then build the code you want to test.
84
+
85
+
### The Risky approach
86
+
87
+
*Please note that this approach is risky as you are lowering the security on your system, therefore we strongly discourage you from following it.*
88
+
1. Use [this guide](https://help.apple.com/xcode/mac/10.2/index.html?localePath=en.lproj#/dev9b7736b0e), in order to disable Gatekeeper (at your own risk!).
89
+
1. Download the unsigned artifact provided by the CI workflow run related to the Pull Request at each push.
90
+
1. Re-enable Gatekeeper after tests are done, following the guide linked above.
91
+
76
92
### Creating a release
77
93
78
94
You will not need to create a new release yourself as the Arduino team takes care of this on a regular basis, but we are documenting the process here. Let's assume the current version is `0.1.3` and you want to release `0.2.0`.
0 commit comments