Skip to content

Commit a6ef6fa

Browse files
committed
Update to node 22
1 parent 4e36040 commit a6ef6fa

21 files changed

+1606
-717
lines changed

.eslintrc.json

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG] ___ doesn't work"
5+
labels: bug
6+
assignees: raub
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. ___
16+
2. ___
17+
3. ___
18+
19+
**Expected behavior**
20+
Description of what you expected to happen.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEAT] ____"
5+
labels: new
6+
assignees: raub
7+
8+
---
9+
10+
**Describe the solution you'd like**
11+
Description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
Description of alternative solutions or features you've considered.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Description
2+
<!-- A concise description of what the PR does. -->
3+
4+
5+
## Test Plan
6+
<!-- How can a reviewer test the changes included in this PR? -->
7+
1.
8+
2.
9+
3.
10+
11+
12+
## Checklist
13+
<!-- Ensure that your PR fulfills the following requirements -->
14+
- [ ] I've followed the code style.
15+
- [ ] I've tried running the code with my changes.
16+
- [ ] The docs and TS declarations are in sync with code changes.
17+
- [ ] (optional) I've added unit tests for my changes.

.github/workflows/build.yml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
name: Fetch Binaries
2+
defaults:
3+
run:
4+
shell: bash
5+
6+
on:
7+
workflow_dispatch
8+
9+
jobs:
10+
create_release:
11+
name: Create Release
12+
if: contains('["raub"]', github.actor)
13+
runs-on: ubuntu-latest
14+
15+
outputs:
16+
upload_url: ${{ steps.create_release.outputs.upload_url }}
17+
18+
steps:
19+
20+
- name: Fetch Repository
21+
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
24+
25+
- name: Install Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22.9.0
29+
cache: 'npm'
30+
31+
- name: Get Package Version
32+
id: package-version
33+
run: node -p "'version='+require('./package').version" >> $GITHUB_OUTPUT
34+
35+
- name: Create Draft Release
36+
id: create_release
37+
uses: softprops/action-gh-release@v2
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
draft: true
42+
tag_name: ${{ steps.package-version.outputs.version }}
43+
name: Release ${{ steps.package-version.outputs.version }}
44+
body: Binaries at ${{ github.sha }}
45+
46+
build:
47+
name: Fetch Qt Binaries
48+
strategy:
49+
matrix:
50+
os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]]
51+
52+
runs-on: ${{ matrix.os }}
53+
54+
steps:
55+
- name: Fetch Repository
56+
uses: actions/checkout@v4
57+
with:
58+
persist-credentials: false
59+
60+
- name: Install Qt
61+
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-14' || matrix.os == 'windows-2022'
62+
uses: jurplel/install-qt-action@v4
63+
with:
64+
version: '6.8.0'
65+
cache: 'true'
66+
cache-key-prefix: 'install-qt-${{ matrix.os }}'
67+
68+
- name: Install Node.js
69+
uses: actions/setup-node@v4
70+
with:
71+
node-version: 22.9.0
72+
cache: 'npm'
73+
74+
- name: Get Package Version
75+
id: package-version
76+
run: node -p "'version='+require('./package').version" >> $GITHUB_OUTPUT
77+
78+
- name: Locate Tmp Dir
79+
run: |
80+
QT_TMP0='${{ github.workspace }}'
81+
QT_TMP1="${QT_TMP0//'\'/"/"}"
82+
echo "QT_TMP=$QT_TMP1/../__tmp" >> $GITHUB_ENV
83+
84+
- name: Create Qt Subdirs
85+
run: |
86+
chmod +x src/qt-mkdir.sh
87+
src/qt-mkdir.sh ${{ env.QT_TMP }}
88+
89+
- name: Copy Qt Dir - Linux
90+
if: matrix.os == 'ubuntu-22.04'
91+
run: |
92+
echo "OS_NAME=linux" >> $GITHUB_ENV
93+
chmod +x src/qt-copy-linux.sh
94+
src/qt-copy-linux.sh ${{ env.QT_TMP }} ${{ github.workspace }}/../Qt/6.8.0/gcc_64
95+
96+
- name: Copy Qt Dir - Linux ARM
97+
if: matrix.os != 'ubuntu-22.04' && matrix.os != 'macos-14' && matrix.os != 'windows-2022'
98+
run: |
99+
echo "OS_NAME=aarch64" >> $GITHUB_ENV
100+
chmod +x src/qt-copy-linux.sh
101+
src/qt-copy-linux.sh ${{ env.QT_TMP }} /home/opc/6.8.0/gcc_arm64
102+
103+
- name: Copy Qt Dir - MacOS ARM
104+
if: matrix.os == 'macos-14'
105+
run: |
106+
echo "OS_NAME=darwin-arm64" >> $GITHUB_ENV
107+
chmod +x src/qt-copy-macos.sh
108+
src/qt-copy-macos.sh ${{ env.QT_TMP }} ${{ github.workspace }}/../Qt/6.8.0/macos
109+
110+
- name: Copy Qt Dir - Windows
111+
if: matrix.os == 'windows-2022'
112+
run: |
113+
echo "OS_NAME=windows" >> $GITHUB_ENV
114+
src/qt-copy-windows.sh '${{ env.QT_TMP }}' '${{ github.workspace }}\..\Qt\6.8.0\msvc2022_64'
115+
116+
- name: Pack Libs
117+
run: |
118+
cd '${{ env.QT_TMP }}'
119+
tar -czf ../${{ env.OS_NAME }}.gz *
120+
121+
- name: Store Binaries
122+
uses: softprops/action-gh-release@v2
123+
env:
124+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
125+
with:
126+
draft: true
127+
tag_name: ${{ steps.package-version.outputs.version }}
128+
name: Release ${{ steps.package-version.outputs.version }}
129+
files: ${{ env.QT_TMP }}/../${{ env.OS_NAME }}.gz

.github/workflows/eslint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ on:
1414
jobs:
1515
eslint:
1616
name: ESLint
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-22.04
1818

1919
steps:
2020

2121
- name: Fetch Repository
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
with:
2424
persist-credentials: false
2525

2626
- name: Install Node.js
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: 18.16.0
29+
node-version: 22.9.0
3030
cache: 'npm'
3131

3232
- name: Install Modules

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
steps:
1515

1616
- name: Fetch Repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
persist-credentials: false
2020

2121
- name: Install Node.js
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2323
with:
24-
node-version: 18.16.0
24+
node-version: 22.9.0
2525
cache: 'npm'
2626

2727
- name: Get Package Version

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ jobs:
1616
name: Unit Tests
1717
strategy:
1818
matrix:
19-
os: [ubuntu-20.04, windows-2022, macos-11, [self-hosted, linux, ARM64]]
19+
os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]]
2020

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

2323
steps:
2424

2525
- name: Fetch Repository
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
persist-credentials: false
2929

3030
- name: Install Node.js
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
33-
node-version: 18.16.0
33+
node-version: 22.9.0
3434
cache: 'npm'
3535

3636
- name: Install Modules

CODE_OF_CONDUCT.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Code of Conduct
2+
3+
We pledge to act and interact in ways that contribute to an open and healthy community.
4+
5+
## Our Standards
6+
7+
Examples of unacceptable behavior:
8+
9+
* The use of sexualized language or imagery
10+
* Trolling, insulting or derogatory comments
11+
* Public or private harassment
12+
* Publishing others' private information
13+
* Other unprofessional conduct
14+
15+
## Enforcement
16+
17+
Community leaders will remove, edit, or reject
18+
contributions that are not aligned to this Code of Conduct.

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Contributing
2+
3+
Bugs and enhancements are tracked as GitHub issues.
4+
5+
## Issues
6+
7+
* Use a clear and descriptive title.
8+
* Describe the desired enhancement / problem.
9+
* Provide examples to demonstrate the issue.
10+
* If the problem involves a crash, provide its trace log.
11+
12+
## Pull Requests
13+
14+
* Do not include issue numbers in the PR title.
15+
* Commits use the present tense (`"Add feature"` not `"Added feature"`).
16+
* Commits use the imperative mood (`"Move cursor to..."` not `"Moves cursor to..."`).
17+
* File System
18+
* Prefer kebab-lowercase (`my-dir/example-file-name.js`).
19+
* Place an empty `.keep` file to keep an empty directory.

0 commit comments

Comments
 (0)