-
-
Notifications
You must be signed in to change notification settings - Fork 150
CI polishing, add win64, update macOS min version #578
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
It's handy to have a reproducible environment to compile the source code
test.yml
to release.yml
and add upload artifacts
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.
We should update the macOS min version using the cgo and linker options.
Still to handle: TEST_TAG in test.yml and win binary name in release.yml
03fd1a8
to
3e532a0
Compare
having no fixed tags was causing the agent to autoupdate itself the first time it gets connected with create
test.yml
to release.yml
and add upload artifacts 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.
LGTM!
- name: Write gon config to file | ||
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20) | ||
run: | | ||
cat > gon.config.hcl <<EOF | ||
source = ["arduino-create-agent-${{ env.RUNS_ON }}/arduino-create-agent"] | ||
bundle_id = "cc.arduino.arduino-agent" | ||
sign { | ||
application_identity = "Developer ID Application: ARDUINO SA (7KT7ZWMCJT)" | ||
} | ||
# Ask Gon for zip output to force notarization process to take place. | ||
# The CI will ignore the zip output, using the signed binary only. | ||
zip { | ||
output_path = "arduino-create-agent.zip" | ||
} | ||
EOF | ||
|
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.
This is a really simple and effective mechanism for templating config files, kudos!
@@ -10,9 +10,17 @@ jobs: | |||
build: | |||
strategy: | |||
matrix: | |||
operating-system: [ubuntu-18.04, windows-2019, macos-10.15] |
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.
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.
L(F)GTM!
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.
LGTM
* change approach: redirect stderr to file instead using defer * update gin dependency because of gin-gonic/gin#1571 * set default logger to stdout. (stderr is currently redirected to file) * save crash-report to newly created `logs/` folder * add enable/disable crash-report generation (default off) * add entry in trayicon's menu to remove crash-reports (if there are any) * CI polishing, add win64, update macOS min version (#578)
* change approach: redirect stderr to file instead using defer * update gin dependency because of gin-gonic/gin#1571 * set default logger to stdout. (stderr is currently redirected to file) * save crash-report to newly created `logs/` folder * add enable/disable crash-report generation (default off) * add entry in trayicon's menu to remove crash-reports (if there are any) * CI polishing, add win64, update macOS min version (#578)
Please check if the PR fulfills these requirements
before creating one)
CI
Align
test.yml
torelease.yml
and add again upload artifacts: It's really useful to have a reproducible environment to compile the code for every platform.hardcode gon config for uniformity
Introduce win 64bit build
Change macOS min supported version to 10.11 -> change go version used to build from 1.15 to 10.14 (because of macOS)
Have
test.yml
to push artifact with0.0.0-dev
in order to block create auto-updateno
test.yml
torelease.yml
revert to building minimum version for mac to 10.9 & separate step fo… #576