Skip to content

Commit e448ef9

Browse files
committed
Update deps
1 parent 14a5286 commit e448ef9

File tree

12 files changed

+146
-171
lines changed

12 files changed

+146
-171
lines changed

.circleci/config.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,27 @@ jobs:
2525
- name: Install Node.js
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: 22.9.0
28+
node-version: 22.14.0
2929
cache: 'npm'
3030

3131
- name: Get Package Version
3232
id: package-version
3333
run: node -p "'version='+require('./package').version" >> $GITHUB_OUTPUT
3434

35-
- name: Create Draft Release
35+
- name: Create Release
3636
id: create_release
3737
uses: softprops/action-gh-release@v2
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
with:
4141
tag_name: ${{ steps.package-version.outputs.version }}
4242
name: Release ${{ steps.package-version.outputs.version }}
43-
body: Binaries at ${{ github.sha }}
4443

4544
build:
4645
name: Build
4746
strategy:
4847
matrix:
49-
os: [ubuntu-22.04, windows-2022, macos-14]
48+
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2022, macos-14]
5049

5150
runs-on: ${{ matrix.os }}
5251

@@ -60,7 +59,7 @@ jobs:
6059
- name: Install Node.js
6160
uses: actions/setup-node@v4
6261
with:
63-
node-version: 22.9.0
62+
node-version: 22.14.0
6463
cache: 'npm'
6564

6665
- name: Install Modules

.github/workflows/cpplint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install Node.js
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: 22.9.0
29+
node-version: 22.14.0
3030
cache: 'npm'
3131

3232
- name: Install Modules

.github/workflows/eslint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install Node.js
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: 22.9.0
29+
node-version: 22.14.0
3030
cache: 'npm'
3131

3232
- name: Install Modules

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 22.9.0
24+
node-version: 22.14.0
2525
cache: 'npm'
2626

2727
- name: Get Package Version
@@ -41,6 +41,5 @@ jobs:
4141
env:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
with:
44-
draft: true
4544
tag_name: ${{ steps.package-version.outputs.version }}
4645
name: Release ${{ steps.package-version.outputs.version }}

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Unit Tests
1717
strategy:
1818
matrix:
19-
os: [ubuntu-22.04, windows-2022, macos-14]
19+
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2022, macos-14]
2020

2121
runs-on: ${{ matrix.os }}
2222

@@ -30,7 +30,7 @@ jobs:
3030
- name: Install Node.js
3131
uses: actions/setup-node@v4
3232
with:
33-
node-version: 22.9.0
33+
node-version: 22.14.0
3434
cache: 'npm'
3535

3636
- name: Install Modules
@@ -44,9 +44,9 @@ jobs:
4444
run: npm run build
4545

4646
- name: Run Unit Tests - Linux
47-
if: matrix.os == 'ubuntu-22.04'
47+
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-22.04-arm'
4848
run: xvfb-run --auto-servernum npm run test-ci
4949

50-
- name: Run Unit Tests
51-
if: matrix.os != 'windows-2022' && matrix.os != 'ubuntu-22.04'
50+
- name: Run Unit Tests - Mac
51+
if: matrix.os == 'macos-14'
5252
run: npm run test-ci

examples/perf.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
'use strict';
2+
3+
const glfw = require('../');
4+
const { Window } = glfw;
5+
6+
7+
const w1 = new Window({ title: 'GLFW Events', vsync: false });
8+
9+
let prevTime = Date.now();
10+
let frames = 0;
11+
let events = 0;
12+
13+
w1.on('mousemove', () => { events++; });
14+
15+
const loopFunc = () => {
16+
if (w1.shouldClose || w1.getKey(glfw.KEY_ESCAPE)) {
17+
process.exit(0);
18+
return;
19+
}
20+
21+
glfw.testScene(w1.width, w1.height);
22+
w1.requestAnimationFrame(loopFunc);
23+
24+
frames++;
25+
const time = Date.now();
26+
if (time >= prevTime + 1000) {
27+
console.log(
28+
'FPS:', Math.floor((frames * 1000) / (time - prevTime)),
29+
'Events:', events,
30+
);
31+
prevTime = time;
32+
frames = 0;
33+
events = 0;
34+
}
35+
};
36+
37+
w1.requestAnimationFrame(loopFunc);

install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ const { install } = require('addon-tools-raub');
44

55

66
const prefix = 'https://github.com/node-3d/glfw-raub/releases/download';
7-
const tag = '6.1.0';
7+
const tag = '6.4.0';
88

99
install(`${prefix}/${tag}`);

0 commit comments

Comments
 (0)