Skip to content

Commit f84b375

Browse files
committed
Update cpp and examples
1 parent 632b6fa commit f84b375

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+953
-1376
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +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:
41-
draft: true
4241
tag_name: ${{ steps.package-version.outputs.version }}
4342
name: Release ${{ steps.package-version.outputs.version }}
44-
body: Binaries at ${{ github.sha }}
4543

4644
build:
4745
name: Build
4846
strategy:
4947
matrix:
50-
os: [ubuntu-22.04, windows-2022, macos-14]
48+
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2022, macos-14]
5149

5250
runs-on: ${{ matrix.os }}
5351

@@ -61,7 +59,7 @@ jobs:
6159
- name: Install Node.js
6260
uses: actions/setup-node@v4
6361
with:
64-
node-version: 22.9.0
62+
node-version: 22.14.0
6563
cache: 'npm'
6664

6765
- name: Install Modules
@@ -83,7 +81,6 @@ jobs:
8381
env:
8482
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8583
with:
86-
draft: true
8784
tag_name: ${{ steps.package-version.outputs.version }}
8885
name: Release ${{ steps.package-version.outputs.version }}
8986
files: ${{ steps.pack-files.outputs.pack }}

.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: 2 additions & 2 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

examples/aligned.mjs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
import Image from 'image-raub';
42
import glfw from 'glfw-raub';
53
const { Document } = glfw;
@@ -131,10 +129,4 @@ const drawScene = () => {
131129
};
132130

133131

134-
const tick = () => {
135-
drawScene();
136-
137-
document.requestAnimationFrame(tick);
138-
};
139-
140-
document.requestAnimationFrame(tick);
132+
document.loop(drawScene);

examples/cube.mjs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
import glfw from 'glfw-raub';
42
const { Document } = glfw;
53

@@ -161,13 +159,11 @@ const drawScene = () => {
161159
};
162160

163161

164-
const tick = () => {
165-
xRot = (xSpeed * Date.now()) * 0.001;
166-
yRot = (ySpeed * Date.now()) * 0.001;
162+
const tick = (now) => {
163+
xRot = (xSpeed * now) * 0.001;
164+
yRot = (ySpeed * now) * 0.001;
167165

168166
drawScene();
169-
170-
document.requestAnimationFrame(tick);
171167
};
172168

173-
document.requestAnimationFrame(tick);
169+
document.loop(tick);

examples/extensions.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
import glfw from 'glfw-raub';
42
const { Document } = glfw;
53

examples/glversion.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
import glfw from 'glfw-raub';
42
const { Document } = glfw;
53

examples/package-lock.json

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

0 commit comments

Comments
 (0)