Commit graph

43 commits

Author SHA1 Message Date
Francis Gulotta
5f5a0fb9aa
fix: token for release 2024-12-23 15:36:47 -05:00
Francis Gulotta
cffb14d6b5
chore: Release updates (#196)
- Re-enable releases
- Regenerate package-lock

BREAKING CHANGE: Targeting node 20, upgrading prebuilds, makes webpacking binaries easier
2024-12-23 15:18:17 -05:00
Nerivec
5d157b180e
Bring everything up-to-date (#194)
Ended up refactoring quite a bit while investigating a bug (_seems
prebuilds are failing on more and more setups_), figured a recap PR
might help...

- Fix outdated packages (that don't require more refactoring)
- Update node version in `test` to match that of `prebuild` action
- Update napi_versions to 8
- Update prebuildify target to 20
- Update (split) matrix
  - force tags where missing
  - add `win32-arm64`
- fix outdated image for linux-x64 (`centos7-devtoolset7` =>
`almalinux-devtoolset11`)
  - switch `linux-arm64-lts` to `linux-arm64`
- Update artifact names with `matrix.name` to avoid conflicts (merged on
download)
- Fix lint in tests

TODO:

- **Currently, this removes the `semantic-release` step in favor of a
`tree prebuilds` to finish debugging ([naming seems to have
changed](https://www.npmjs.com/package/@serialport/bindings-cpp?activeTab=code):
impact?), see action run:**
  - https://github.com/Nerivec/bindings-cpp/actions/runs/12331013585
- Can probably also add `dockcross/linux-riscv64`, which is becoming
more requested? (although not yet in `prebuild/docker-images`)

_Feel free to update/split as desired._

---------

Co-authored-by: Francis Gulotta <wizard@roborooter.com>
2024-12-23 14:38:28 -05:00
renovate[bot]
7119e10b91
chore(deps): update actions/checkout action to v4 (#140)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://redirect.github.com/actions/checkout) |
action | major | `v3` -> `v4` |

---

### Release Notes

<details>
<summary>actions/checkout (actions/checkout)</summary>

###
[`v4`](https://redirect.github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v421)

[Compare
Source](https://redirect.github.com/actions/checkout/compare/v3...v4)

- Check out other refs/\* by commit if provided, fall back to ref by
[@&#8203;orhantoy](https://redirect.github.com/orhantoy) in
[https://github.com/actions/checkout/pull/1924](https://redirect.github.com/actions/checkout/pull/1924)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/serialport/bindings-cpp).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi43OS4xIiwidXBkYXRlZEluVmVyIjoiMzguMTIwLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 16:54:11 -04:00
renovate[bot]
d660a7030e
chore(deps): update github artifact actions to v4 (major) (#181)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[actions/download-artifact](https://redirect.github.com/actions/download-artifact)
| action | major | `v3` -> `v4` |
|
[actions/upload-artifact](https://redirect.github.com/actions/upload-artifact)
| action | major | `v3` -> `v4` |

---

### Release Notes

<details>
<summary>actions/download-artifact (actions/download-artifact)</summary>

###
[`v4`](https://redirect.github.com/actions/download-artifact/compare/v3...v4)

[Compare
Source](https://redirect.github.com/actions/download-artifact/compare/v3...v4)

</details>

<details>
<summary>actions/upload-artifact (actions/upload-artifact)</summary>

###
[`v4`](https://redirect.github.com/actions/upload-artifact/compare/v3...v4)

[Compare
Source](https://redirect.github.com/actions/upload-artifact/compare/v3...v4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/serialport/bindings-cpp).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 16:51:32 -04:00
renovate[bot]
4c3b5fc1ff
chore(deps): update codecov/codecov-action action to v4 (#179)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[codecov/codecov-action](https://redirect.github.com/codecov/codecov-action)
| action | major | `v3` -> `v4` |

---

### Release Notes

<details>
<summary>codecov/codecov-action (codecov/codecov-action)</summary>

###
[`v4`](https://redirect.github.com/codecov/codecov-action/compare/v3...v4)

[Compare
Source](https://redirect.github.com/codecov/codecov-action/compare/v3...v4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/serialport/bindings-cpp).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 16:50:03 -04:00
Francis Gulotta
de5d3de22d
Upgrade build related tools (#178)
- MacOS 11 is going away
- [Node 20 is about to hit active
LTS](https://nodejs.org/en/about/previous-releases#nodejs-releases)
- Node 16 support has been dropped
- Upgrade the packages around building
2024-10-18 16:20:51 -04:00
Alejandro Ojeda Gutiérrez
2ba6b605c5
Add linux-armv7l-musl prebuilt (#166)
Prebuildify for armv7 musl
https://github.com/prebuild/prebuildify-cross/issues/17
2024-10-18 15:42:31 -04:00
Gareth Hancock
5a89c1ce0e
chore: drop node 14
BREAKING CHANGE: drop support for node v14 as it's end of life (#127)
2023-07-21 07:14:30 -04:00
Francis Gulotta
7a8b86fdb9
fix: update build tools and fix arm64 build for rpi (#111)
Two problems to fix with this one
- our rpi arm64 isn't working possibly because our libc is too new, so we'll target the lts of arm64, worked for [level](https://github.com/Level/classic-level/pull/71) thankful for [their investigation](https://github.com/Level/classic-level/issues/69)
- our arm64 builds were just broken and wouldn't build so we're fixing that with a variable in our binding.gyp for `openssl_fips`

When this is released it will hopefully fix https://github.com/serialport/node-serialport/issues/2438
2023-04-19 23:22:09 -04:00
Francis Gulotta
8d160c92a5
feat: update to node 18, build with node 20, drop node 12 (#110)
BREAKING CHANGE: Drop node 12
2023-04-19 12:01:15 -04:00
renovate[bot]
83046a7394
chore(deps): update codecov/codecov-action action to v3 (#64) 2022-04-20 09:08:06 -04:00
Francis Gulotta
7f7ff1f673
chore: update codecov because of deprecation (#52)
They're behind on shutting it off but they're gonna https://about.codecov.io/blog/codecov-uploader-deprecation-plan/
2022-03-04 23:44:32 -05:00
renovate[bot]
2acc200889
chore(deps): update actions/download-artifact action to v3 (#45)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-04 20:33:34 -05:00
renovate[bot]
8f6ef21be2
chore(deps): update actions/setup-node action to v3 (#40)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-04 20:33:15 -05:00
renovate[bot]
a93da520ea
chore(deps): update actions/upload-artifact action to v3 (#47)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-04 20:30:36 -05:00
renovate[bot]
0fab5e55c6
chore(deps): update actions/checkout action to v3 (#44)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-04 20:20:17 -05:00
Francis Gulotta
dd3c72403b
fix: upgrade node-gyp (#50)
* chore: upgrade node-gyp

- prebuildify-cross now supports python3 which should support node-gyp v9
- hopefully this fix base windows installs with no prebuilds
- additionally make the ls that happens on build fail cross platform

* lets see if windows-2019 does it
2022-03-04 18:05:39 -05:00
Francis Gulotta
2a869d58c0
chore: clamp down on build concurrency 2022-01-30 10:42:01 -05:00
Francis Gulotta
544f5627e3
chore: update packages and node (#5)
- Build on node 16
- update packages
2022-01-22 17:27:35 -05:00
Francis Gulotta
03595dda38
fix: build js before publishing (#4) 2022-01-22 16:24:24 -05:00
Francis Gulotta
2a93f48ee6
feat: migrate to typescript (#3)
This change migrates to typescript. The tests have been modified to conform to typescript and to cleanup cases when they weren't actually working (only one or two cases).

I've defined the existing bindings interface for all platforms. There are changes I'd love to make but didn't here (update/set/get/getBaudRate etc are messy). This should in theory be a drop in for the existing bindings. If there are bugs I imagine they're type related not functionality.

I dropped abstract bindings as having it a separate package didn't make sense during the refactor. I'd like to iterate on the design a bit more before returning to that class. Mockbinding may also now be drifted slightly from this package. I'll clean those inconsistencies up when I upgrade the main repo.
2022-01-22 15:55:03 -05:00
Francis Gulotta
7e27129e9b
fix: builds by instalilng packages 2022-01-06 11:10:52 -05:00
Francis Gulotta
da526836f9
fix: releases by configuring branches 2022-01-06 11:06:06 -05:00
Francis Gulotta
a71cd814ba
fix: build steps again 2022-01-06 10:56:35 -05:00
Francis Gulotta
300d677a63
fix: cleanup build scripts 2022-01-06 10:51:34 -05:00
thegecko
2cf09000a3 use node-gyp v7.x.x 2022-01-02 23:23:35 +00:00
Francis Gulotta
246322b391
fix: deploy on merges to master and beta 2022-01-02 16:47:44 -05:00
Francis Gulotta
052f07141b
chore: cleanup reduentend builds 2021-12-29 21:58:24 -05:00
Rob Moran
d50673fe74
feat: Introduce prebuildify (#2368)
* prebuildify
* Prebuildify cross

This is a breaking change but will be included in the 10x major release currently in beta.
2021-12-27 16:18:53 -05:00
Francis Gulotta
64365c5e88
chore: standardize on node 16 (#2376) 2021-12-25 18:32:55 -05:00
Francis Gulotta
871298678d chore: remove node 10 support (#2374)
This is a breaking change but since v10 is under beta I'm not marking this change as so.
2021-12-24 17:19:47 -05:00
Francis Gulotta
f400a90870
fix: build binaries on every lerna release 2021-12-11 20:23:39 -05:00
Francis Gulotta
470bf1fecd
fix: tag filtering on build job 2021-12-11 17:36:36 -05:00
Francis Gulotta
0461285f04
feat: combine lint and test workflows and clean them up (#2261)
- lint job is now part of the test workflow
- test merge and test jobs are now easier to understand and no longer work around fixed bugs
- test merge now runs on a pr event which should be a merge commit
- everything should be faster
2021-06-08 23:16:01 -04:00
Pavinthan
d13514b10b
ia32 build options added in Github workflows (#2221)
Co-authored-by: Pavinthan <pavi.ceymplon@jeylabs.com.au>
2021-02-18 12:55:29 -05:00
Francis Gulotta
f734f09475 Add a way to force builds 2020-12-24 16:42:42 -05:00
Francis Gulotta
1962140e29 Github actions build workflow
Drpping appveryor and travis due to very long build queues and general unreliability. We're actions all the way baby. I had to drop 32bit builds completely with this change but they were already not working on appveryor or travis due to available nodejs builds and unreliability.
2020-12-17 18:07:58 -05:00
Francis Gulotta
e0c232c77a
chore: build on node 14 and drop node 8 and 32bit linux builds (#2079)
- Build binaries on node 14 and test on node 14
- Node 14 is no longer being built for 32bit linux, not much I can do.
- Node 8 is out of LTS so it’s gone https://github.com/nodejs/Release#release-schedule

BREAKING CHANGE: Dropping node 8 and 32bit linux builds
2020-05-10 01:16:58 -04:00
Francis Gulotta
d500a5b1ba
fix: upgrade npm on GitHub actions to fix bug (#1973)
GitHub actions has some intermittent bugs when installing packages. Hopefully this helps.
2019-10-29 23:02:35 -04:00
Francis Gulotta
bfb47c71da
feat: Test merges with master (#1952)
I hope merge doesn’t run on the master branch. I disable the pull request events to prevent double builds.
2019-10-02 22:04:53 -04:00
Francis Gulotta
bae3483a6d
chore: Setup CI with github actions (#1924)
This uses GitHub actions for linux, windows and osx testing. Travis and appveyor is still present for binary building.
2019-09-28 22:04:58 -04:00
Francis Gulotta
fb05c2d80f
feat: Use GitHub actions for linting (#1927) 2019-08-30 21:11:42 -04:00