-
-
Notifications
You must be signed in to change notification settings - Fork 12
[skip changelog] New release process that doesn't use goreleaser #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
50a211a
to
a69dde8
Compare
The "Check documentation links" workflow failure is expected. It's caused by the repositories being private. |
Demonstration release using this system (using my certificate and identity and with the AWS upload step disabled) available here: https://github.com/per1234/arduino-lint/releases/tag/0.1.0 |
7b355a7
to
ff251f8
Compare
The previous case insensitive flag syntax is not supported in JavaScript regular expressions, resulting in an error from the `arduino/create-changelog` action: Invalid regular expression: /^(?i)\[(skip|changelog)[ ,-](skip|changelog)\].*/: Invalid group I couldn't find a valid way to specify the i flag, so I used the brute force approach to achieve case-insensitivity.
Although useful when used locally, when run in the headless GitHub Actions runner environment, this causes the command to fail: the input device is not a TTY
The "Build" step of the workflow relies on Task being installed. Without this step, the workflow fails: task: command not found
Previously, the Windows executables produced by the dist:Windows_32bit and dist:Windows_64bit tasks were named arduino-lint.
This is required for the correct output from `arduino-lint --version` with release versions of the tool.
The date in the filename would break the current installation script approach.
This is the naming convention established in Arduino CLI. Since neither format is superior to the other, and arduino-lint is using Arduino CLI as a reference (and likely the other way around as well in the future), it's best to be consistent.
ff251f8
to
1058964
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent job
I left a minor nitpick for @per1234 🐱
The rest is good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Silvano!
This PR supersedes #118.
This should be the new release process, it doesn't use
goreleaser
and themultiarch
container to crosscompile but theelastic/golang-crossbuild
containers to build for multiple platforms.It's currently working and could be used as is, but it needs some documentation.
Ideally this way of building can be easily used for the
arduino-cli
with minimal changes.