Skip to content

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

Merged
merged 17 commits into from
Dec 17, 2020

Conversation

umbynos
Copy link
Contributor

@umbynos umbynos commented Dec 14, 2020

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • What kind of change does this PR introduce?

CI

  • What is the current behavior?
  • What is the new behavior?

Align test.yml to release.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 with 0.0.0-dev in order to block create auto-update

  • Does this PR introduce a breaking change?

no

  • Other information:

It's handy to have a reproducible environment to compile the source code
@umbynos umbynos changed the title Umbynos/uniform test.yml uniform test.yml to release.yml and add upload artifacts Dec 14, 2020
@umbynos umbynos self-assigned this Dec 14, 2020
@umbynos umbynos added the CI label Dec 14, 2020
@umbynos umbynos requested a review from zmoog December 14, 2020 17:10
Copy link
Contributor

@zmoog zmoog left a 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.

@umbynos umbynos force-pushed the umbynos/uniform_test.yml branch from 03fd1a8 to 3e532a0 Compare December 15, 2020 10:43
having no fixed tags was causing the agent to autoupdate itself the first time it gets connected with create
@umbynos umbynos changed the title uniform test.yml to release.yml and add upload artifacts CI polishing, add win64, update macOS min version Dec 15, 2020
Copy link
Contributor

@zmoog zmoog left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +138 to +153
- 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

Copy link
Contributor

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]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@zmoog zmoog left a comment

Choose a reason for hiding this comment

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

L(F)GTM!

Copy link
Contributor

@zmoog zmoog left a comment

Choose a reason for hiding this comment

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

LGTM

@umbynos umbynos merged commit e6dc18d into umbynos/add_crashreport Dec 17, 2020
@umbynos umbynos deleted the umbynos/uniform_test.yml branch December 17, 2020 16:44
umbynos added a commit that referenced this pull request Dec 17, 2020
* 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)
umbynos added a commit that referenced this pull request Dec 18, 2020
* 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)
@per1234 per1234 added the topic: infrastructure Related to project infrastructure label Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants