Skip to content

Commit

Permalink
Update to node 22
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 16, 2024
1 parent 4e36040 commit a6ef6fa
Show file tree
Hide file tree
Showing 21 changed files with 1,606 additions and 717 deletions.
81 changes: 0 additions & 81 deletions .eslintrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] ___ doesn't work"
labels: bug
assignees: raub

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. ___
2. ___
3. ___

**Expected behavior**
Description of what you expected to happen.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEAT] ____"
labels: new
assignees: raub

---

**Describe the solution you'd like**
Description of what you want to happen.

**Describe alternatives you've considered**
Description of alternative solutions or features you've considered.
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Description
<!-- A concise description of what the PR does. -->


## Test Plan
<!-- How can a reviewer test the changes included in this PR? -->
1.
2.
3.


## Checklist
<!-- Ensure that your PR fulfills the following requirements -->
- [ ] I've followed the code style.
- [ ] I've tried running the code with my changes.
- [ ] The docs and TS declarations are in sync with code changes.
- [ ] (optional) I've added unit tests for my changes.
129 changes: 129 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
name: Fetch Binaries
defaults:
run:
shell: bash

on:
workflow_dispatch

jobs:
create_release:
name: Create Release
if: contains('["raub"]', github.actor)
runs-on: ubuntu-latest

outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}

steps:

- name: Fetch Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22.9.0
cache: 'npm'

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

- name: Create Draft Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
tag_name: ${{ steps.package-version.outputs.version }}
name: Release ${{ steps.package-version.outputs.version }}
body: Binaries at ${{ github.sha }}

build:
name: Fetch Qt Binaries
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]]

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

steps:
- name: Fetch Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Qt
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-14' || matrix.os == 'windows-2022'
uses: jurplel/install-qt-action@v4
with:
version: '6.8.0'
cache: 'true'
cache-key-prefix: 'install-qt-${{ matrix.os }}'

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22.9.0
cache: 'npm'

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

- name: Locate Tmp Dir
run: |
QT_TMP0='${{ github.workspace }}'
QT_TMP1="${QT_TMP0//'\'/"/"}"
echo "QT_TMP=$QT_TMP1/../__tmp" >> $GITHUB_ENV
- name: Create Qt Subdirs
run: |
chmod +x src/qt-mkdir.sh
src/qt-mkdir.sh ${{ env.QT_TMP }}
- name: Copy Qt Dir - Linux
if: matrix.os == 'ubuntu-22.04'
run: |
echo "OS_NAME=linux" >> $GITHUB_ENV
chmod +x src/qt-copy-linux.sh
src/qt-copy-linux.sh ${{ env.QT_TMP }} ${{ github.workspace }}/../Qt/6.8.0/gcc_64
- name: Copy Qt Dir - Linux ARM
if: matrix.os != 'ubuntu-22.04' && matrix.os != 'macos-14' && matrix.os != 'windows-2022'
run: |
echo "OS_NAME=aarch64" >> $GITHUB_ENV
chmod +x src/qt-copy-linux.sh
src/qt-copy-linux.sh ${{ env.QT_TMP }} /home/opc/6.8.0/gcc_arm64
- name: Copy Qt Dir - MacOS ARM
if: matrix.os == 'macos-14'
run: |
echo "OS_NAME=darwin-arm64" >> $GITHUB_ENV
chmod +x src/qt-copy-macos.sh
src/qt-copy-macos.sh ${{ env.QT_TMP }} ${{ github.workspace }}/../Qt/6.8.0/macos
- name: Copy Qt Dir - Windows
if: matrix.os == 'windows-2022'
run: |
echo "OS_NAME=windows" >> $GITHUB_ENV
src/qt-copy-windows.sh '${{ env.QT_TMP }}' '${{ github.workspace }}\..\Qt\6.8.0\msvc2022_64'
- name: Pack Libs
run: |
cd '${{ env.QT_TMP }}'
tar -czf ../${{ env.OS_NAME }}.gz *
- name: Store Binaries
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
tag_name: ${{ steps.package-version.outputs.version }}
name: Release ${{ steps.package-version.outputs.version }}
files: ${{ env.QT_TMP }}/../${{ env.OS_NAME }}.gz
8 changes: 4 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ on:
jobs:
eslint:
name: ESLint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 22.9.0
cache: 'npm'

- name: Install Modules
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 22.9.0
cache: 'npm'

- name: Get Package Version
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ jobs:
name: Unit Tests
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-11, [self-hosted, linux, ARM64]]
os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]]

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

steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 22.9.0
cache: 'npm'

- name: Install Modules
Expand Down
18 changes: 18 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Code of Conduct

We pledge to act and interact in ways that contribute to an open and healthy community.

## Our Standards

Examples of unacceptable behavior:

* The use of sexualized language or imagery
* Trolling, insulting or derogatory comments
* Public or private harassment
* Publishing others' private information
* Other unprofessional conduct

## Enforcement

Community leaders will remove, edit, or reject
contributions that are not aligned to this Code of Conduct.
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Contributing

Bugs and enhancements are tracked as GitHub issues.

## Issues

* Use a clear and descriptive title.
* Describe the desired enhancement / problem.
* Provide examples to demonstrate the issue.
* If the problem involves a crash, provide its trace log.

## Pull Requests

* Do not include issue numbers in the PR title.
* Commits use the present tense (`"Add feature"` not `"Added feature"`).
* Commits use the imperative mood (`"Move cursor to..."` not `"Moves cursor to..."`).
* File System
* Prefer kebab-lowercase (`my-dir/example-file-name.js`).
* Place an empty `.keep` file to keep an empty directory.
Loading

0 comments on commit a6ef6fa

Please sign in to comment.