chore(ci): remove one-off compatibility validation
This commit is contained in:
1 parent
ff37736a4a
commit
6797143b04
10 files changed
-914
No files matched your search
@@ -1,56 +0,0 @@
|
||||
name: macOS native compatibility
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- packages/napcat-native/**
|
||||
- .github/tests/macos-native/**
|
||||
- .github/workflows/macos-native.yml
|
||||
pull_request:
|
||||
paths:
|
||||
- packages/napcat-native/**
|
||||
- .github/tests/macos-native/**
|
||||
- .github/workflows/macos-native.yml
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
native:
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 10
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- runner: macos-15
|
||||
arch: arm64
|
||||
- runner: macos-15-intel
|
||||
arch: x64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
architecture: ${{ matrix.arch }}
|
||||
- name: Build QQ ABI mock
|
||||
working-directory: .github/tests/macos-native
|
||||
run: |
|
||||
npm install --prefix headers --ignore-scripts --no-package-lock node-api-headers@1.6.0
|
||||
clang++ -std=c++17 -O0 -g -bundle -undefined dynamic_lookup -I headers/node_modules/node-api-headers/include wrapper.cpp -o wrapper.node
|
||||
codesign --force --sign - wrapper.node
|
||||
- name: Exercise native packet hooks
|
||||
run: node --test .github/tests/macos-native/hooks.test.cjs
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: NapNeko/ffmpegAddon
|
||||
ref: 7a68e99b52921a47f7f6d99864ed6217a0a90e7d
|
||||
path: ffmpeg-native-tests
|
||||
- name: Verify packaged FFmpeg
|
||||
working-directory: ffmpeg-native-tests
|
||||
env:
|
||||
FFMPEG_ADDON_PATH: ${{ github.workspace }}/packages/napcat-native/ffmpeg/ffmpegAddon.darwin.${{ matrix.arch }}.node
|
||||
run: |
|
||||
npm ci --ignore-scripts
|
||||
npm test
|
||||
@@ -1,65 +0,0 @@
|
||||
name: macOS QQ runtime
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .github/tests/macos-qq/**
|
||||
- .github/workflows/macos-qq-runtime.yml
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
napcat_version:
|
||||
description: NapCat release to run without login
|
||||
type: string
|
||||
default: v4.18.36
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
runtime:
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- runner: macos-15
|
||||
arch: arm64
|
||||
- runner: macos-15-intel
|
||||
arch: x64
|
||||
env:
|
||||
NAPCAT_VERSION: ${{ inputs.napcat_version || 'v4.18.36' }}
|
||||
QQ_SHA256: d270b78f0b210532637076532a883dc8659851b6daa92451983985ab9f3216f0
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v4
|
||||
id: qq-cache
|
||||
with:
|
||||
path: QQ.dmg
|
||||
key: macos-qq-d270b78f0b210532
|
||||
- name: Download verified QQ and NapCat
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
if [ ! -f QQ.dmg ]; then
|
||||
curl -fLsS --connect-timeout 20 --max-time 300 \
|
||||
https://github.com/A-Randomm-User/macOS-save/releases/download/qq/QQ_v7.0.2.53644.dmg -o QQ.dmg
|
||||
fi
|
||||
echo "$QQ_SHA256 QQ.dmg" | shasum -a 256 -c -
|
||||
gh release download "$NAPCAT_VERSION" --repo NapNeko/NapCatQQ --pattern NapCat.Shell.zip
|
||||
mkdir NapCat
|
||||
unzip -q NapCat.Shell.zip -d NapCat
|
||||
- name: Extract original signed QQ
|
||||
run: |
|
||||
mkdir qq-volume
|
||||
hdiutil attach QQ.dmg -readonly -nobrowse -mountpoint "$PWD/qq-volume"
|
||||
ditto qq-volume/QQ.app QQ.app
|
||||
hdiutil detach "$PWD/qq-volume"
|
||||
codesign --verify --deep --strict QQ.app
|
||||
- name: Verify real QQ native loading and hooks
|
||||
run: python3 .github/tests/macos-qq/runtime.py "$PWD/QQ.app" "$PWD/NapCat"
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: macos-qq-runtime-${{ matrix.arch }}
|
||||
path: qq-runtime-evidence
|
||||
@@ -1,34 +0,0 @@
|
||||
name: Release notes
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .github/scripts/generate-release-notes.mjs
|
||||
- .github/tests/release-notes/**
|
||||
- .github/workflows/release-notes.yml
|
||||
- .github/workflows/release-publish.yml
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/scripts/generate-release-notes.mjs
|
||||
- .github/tests/release-notes/**
|
||||
- .github/workflows/release-notes.yml
|
||||
- .github/workflows/release-publish.yml
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
notes:
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 5
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
runner: [ubuntu-latest, windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20.x
|
||||
- run: node --test .github/tests/release-notes/generate.test.mjs
|
||||
@@ -1,32 +0,0 @@
|
||||
name: Windows launcher
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- packages/napcat-shell-loader/launcher*
|
||||
- .github/tests/windows-launcher/**
|
||||
- .github/workflows/windows-launcher.yml
|
||||
pull_request:
|
||||
paths:
|
||||
- packages/napcat-shell-loader/launcher*
|
||||
- .github/tests/windows-launcher/**
|
||||
- .github/workflows/windows-launcher.yml
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
launchers:
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check paths, registry, arguments and elevation
|
||||
shell: pwsh
|
||||
run: ./.github/tests/windows-launcher/validation.ps1
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: windows-launcher-results
|
||||
path: ${{ runner.temp }}/napcat-windows-launcher-tests/results.json
|
||||
Reference in new issue
Block a user