Skip to content

Commit 04e4b4b

Browse files
authored
build on ubuntu 24 (#335)
* try building on ubuntu 24 * add cstdint * add cstdint in types.h * update node-addon-api * include cstdint before exprtk * update the changelog
1 parent 3a62dcf commit 04e4b4b

7 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/test-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
matrix:
4040
node-version: [ 18.x, 20.x, 22.x, 24.x ]
41-
platforms: [ ubuntu-22.04, macos-15, macos-15-intel ]
41+
platforms: [ ubuntu-22.04, ubuntu-24.04, macos-15, macos-15-intel ]
4242

4343
steps:
4444
- uses: actions/checkout@v6

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
### [2.2.1] 2026-11-26
9+
- Fix #336, rebuilding from source with `gcc` 13 or later (Ubuntu 24.04)
10+
811
## [2.2.0] 2025-11-25
912
- Update `ExprTk` to 0.0.3
1013
- Build macOS binaries on macOS 15 with macOS 13/14 with *may work* status

include/exprtkjs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef EXPRTKJS_H
22
#define EXPRTKJS_H
33

4+
#include <cstdint>
5+
46
#ifdef __cplusplus
57
namespace exprtk_js {
68
extern "C" {

package-lock.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@stdlib/types": "^0.4.1",
88
"@types/ndarray": "^1.0.14",
99
"ndarray": "^1.0.19",
10-
"node-addon-api": "^8.0.0"
10+
"node-addon-api": "^8.5.0"
1111
},
1212
"scripts": {
1313
"install": "node-pre-gyp install --fallback-to-build",

src/expression.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <cstdint>
34
#include <exprtk.hpp>
45
#include <map>
56
#include <mutex>

src/types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <cstdint>
34
#include <napi.h>
45

56
namespace exprtk_js {

0 commit comments

Comments
 (0)