Commit Graph

103 Commits

Author SHA1 Message Date
honorless 9c6d1af102 ci(build): limit run scope
* Cancel redundant non-nightly runs and jobs dependent on canceled jobs.

* Limit scheduled runs to zmkfirmware-owned repos.
2024-06-24 13:41:03 -06:00
honorless 7c9477be6e ci(build): improve security posture
* Limit unnecessary permissions.

* Avoid storing credentials.
2024-06-24 13:41:03 -06:00
honorless 0bea7832e9 ci(build): amend changed-files invocation 2024-06-24 13:41:03 -06:00
Peter Johanson 94aa7d8d53 chore(ci): Bump to 3.5 Docker images. 2024-02-09 14:32:46 -08:00
Peter Johanson 72d5c01e46 fix(ci): Move to maintained get-changed files. 2024-01-26 00:26:46 -08:00
Peter Johanson 1f8b45d57d fix(ci): Updated actions to move away Node 16. 2024-01-26 00:26:46 -08:00
Peter Johanson 1a3529a3e6 fix(ci): Use proper variable expression. 2024-01-25 13:20:25 -08:00
Peter Johanson 50e473276f chore(ci): Split build and upload into separate steps
* Treat build and upload as distinct steps during a build, and don't fail
  a PR if only the upload portion fails.
2024-01-14 10:42:04 -08:00
Peter Johanson 52ed49b4bb fix(ci): Upgrade to github-script@v7
* Also adjust form @actions/upload API changes.
2023-12-13 11:48:28 -08:00
Joel Spadin 32ae776c42 refactor: Add more checks to pre-commit
Updated existing pre-commit hooks and added some new hooks:

- Remove trailing whitespace
- Ensure every non-empty file ends with a new line
- Check YAML file validity
- Prevent adding large files
- Ensure any scripts with shebangs are executable

Added a GitHub action to run pre-commit on every commit. Removed any
existing actions which duplicate pre-commit.

Ran pre-commit on the codebase.
2023-04-24 16:07:04 -07:00
Peter Johanson 4ff1a4d3ea refactor: Move to updated Docker images. 2023-04-05 22:55:38 -07:00
Peter Johanson b7b563a4c3 fix(ci): Fix another spot where ` needs escaping. 2023-01-05 12:47:11 -06:00
Peter Johanson 5b9b507de3 fix(ci): Escape ` from JSON metadata files. 2023-01-04 21:40:07 -06:00
dependabot[bot] f59da74a3e chore(deps): bump actions/checkout from 2 to 3.1.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-24 22:49:54 -05:00
Nick Winans 3d3c45bc80
feature(shields): Add nice!view
* Use two shield system, nice_view, and nice_view_adapter
* Build system fixes for interconnect use.
2022-09-29 21:11:26 -04:00
innovaker 0b39bf4336 ci: remove `4-` prefix from zephyr-modules cache keys
This is no longer required.
2022-09-28 04:08:43 +01:00
dependabot[bot] 9e39585f85 chore(deps): bump actions/cache from 3.0.1 to 3.0.2
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.1...v3.0.2)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 01:21:45 -04:00
Peter Johanson 35db784b5d fix: Change detection fixes for interconnect files. 2022-04-03 00:10:29 -04:00
Peter Johanson 94ac100b6b refactor: Move to Zephyr v3.0.0 + ZMK fixes. 2022-04-03 00:10:29 -04:00
Nick Winans edbbbc7540
feat(ci): Use metadata for builds
* Build per board
* Nightly builds of all boards
* Detect board changes and build those changed
* Core set of boards/shields built otherwise.
2022-02-03 00:15:50 -05:00
Peter Johanson 5cc7c280a5 refactor: Move to explicit docker.io/* image references.
* Some runtimes (e.g. podman), require explicit registries in image URLs
 or will prompt for the user to select one, which breaks things like
 VSCode remote container rebuilds.
2021-10-23 15:33:42 -04:00
innovaker 5542c105ed ci: bump `zmk-build-arm` to `2.5`
PR: https://github.com/zmkfirmware/zmk/pull/736
2021-07-17 17:04:25 -04:00
Nick Winans 9c1319c4ff feat(docs): Add nice!nano v2 to scripts, actions, and documentation
asdf

asdf


asdf
2021-07-15 18:52:28 -04:00
KingCoinless 5c11962d98
feat(shields): add helix shield
PR: #429
2021-01-05 18:56:47 +00:00
pbz dcd665999a
feat(shields): add bfo9000 shield
PR: #472
2021-01-02 18:52:50 +00:00
Mango The Fourth 5752b4fbda
feat(shields): add eek shield
PR: #529
2021-01-01 14:33:19 +00:00
Pete Johanson 39490552f2 feat(boards): Add BDN9 Rev2 board.
* Onboard stm32f072.
* 3 possible encoder positions.
* Underglow/per-key not yet support.
2020-12-31 14:46:15 -05:00
Pete Johanson 9a9f155e69 feature(ci): Build split w/ display enabled for testing. 2020-12-28 14:51:43 -05:00
Okke Formsma f865779d5c ci(build): ignore failing upload-artifacts step
Build steps are often failing with "ECONNRESET" errors due to
rate-limiting by github. We usually don't need/care about the
artifacts, so don't have to fail the build when the upload fails.

related to #502 and #actions/upload-artifact/issues/116
2020-12-21 15:55:50 -05:00
innovaker 78acd7610e ci: improve step names
Improves readability and informativeness.

PR: #515
2020-12-17 16:44:11 -05:00
KemoNine 565a72bf95 feat(shields): add tidbit and tidbit_19key shields 2020-12-17 10:57:06 +00:00
innovaker f3502dbcb5 ci: remove unnecessary comments 2020-12-14 22:56:29 -05:00
innovaker 6fa0f8f060 ci: remove zephyr.base-prefer configfile
CI builds successfully without this step.

PR: #498
2020-12-14 22:54:55 -05:00
innovaker 0515a482fe ci: upgrade to zmk-build-arm:2.4
PR: #467
2020-12-14 12:41:25 -05:00
innovaker a4652fa25d ci: add `4-` prefix to cache keys for v2.4.0 upgrade
A hack to invalidate GitHub actions/cache in CI builds/tests for the v2.4.0 upgrade.

PR: #467
2020-12-14 12:41:25 -05:00
innovaker bd4b05f83a ci(build): remove artifact uf2 suffix
The archive now contains hex and uf2 files so the uf2 suffix is no longer accurate.  It probably should've been removed as part of the earlier hex commit.

See: 97d045e7ef
PR: #496
2020-12-10 16:03:56 -05:00
innovaker f9e74110ab ci: migrate workflows to zmk-docker
Leverages the new zmk-build-arm Docker image published by the zmk-docker project.  Reduces build times, enhances DevOps capabilities, and tightly couples CI build container with the dev container.

PR: #481
2020-12-10 14:01:59 -05:00
innovaker 97d045e7ef ci(build): add zmk.hex to archive
This facilitates users who can't utilize the uf2 artifact.

PR: #485
2020-12-08 00:51:23 -05:00
innovaker 7ca90540ae ci(build): refactor archiving to support multiple paths
Allows multiple files to be stored in a single archive.

PR: #485
2020-12-08 00:51:23 -05:00
innovaker b26ceebd4c ci(build): add missing boards
PR: #478
2020-12-08 00:49:17 -05:00
ReFil b0c525df72
feat(shields): add CRBN shield
Co-authored-by: innovaker <66737976+innovaker@users.noreply.github.com>
PR: #483
2020-12-07 16:49:37 +00:00
innovaker 5122af6111 ci(build): add missing pro-micro compatible shields
These should've been added in previous PRs.

PR: #473
2020-12-06 22:50:29 -05:00
innovaker 8ad4f4133d ci(build): add support for board-only builds
Lays the groundwork for CI building boards that don't require shields.

PR: #464
2020-12-06 22:49:35 -05:00
innovaker 54cbc07e6e ci(build): remove proton_c guard from uf2 archive step
Guards conditions aren't strictly required because the build only logs a warning if the file doesn't exist.  It still completes successfully.

PR: #463
2020-12-03 21:10:05 -05:00
innovaker 42cdb83823 ci(build): sort boards and shields alphabetically
Lays the groundwork for further improvements.

PR: #458
2020-12-03 21:07:06 -05:00
innovaker 94f058bc90 ci(build): replace board matrix array with list
A multi-line list can be more merge friendly than a single-line array.

PR: #457
2020-12-02 16:00:18 -05:00
innovaker fe010c7b6d refactor(workflows): add `3-` prefix to cache keys
A hack to invalidate GitHub actions/cache in CI builds/tests.

Activates benefits of 90123caa4c.

Should be reverted after 2 weeks.

PR: #442
2020-12-01 00:32:02 -05:00
innovaker 7babe7f185 refactor(workflows): align GitHub workflow conventions
Cosmetic pass at aligning the conventions used in ZMK's workflows with GitHub's examples.  Based on examples found at:
https://github.com/actions/starter-workflows

PR #433
2020-11-28 17:00:37 -05:00
innovaker e6d863c610 build(workflows): add each workflow to its own trigger conditions
For each workflow, add its path to its own trigger conditions so that it automatically re-triggers for testing purposes whenever it is changed.

PR: #443
2020-11-28 16:59:38 -05:00
innovaker 27d036b9d5 refactor(workflows): remove `2-` prefix from cache keys
Removes obsolete cache invalidation hack.

Ref: 064323b667
PR: #434
2020-11-28 00:03:33 -05:00