revert: CI autobuild on Ubuntu 22.04 (#6547)

* chore: config

* Revert "ci: update Ubuntu version to 24.04 and adjust dependencies in autobuild workflow"

This reverts commit 863a80df43eb1d9a30c79395a4a5c57971430f20.
This commit is contained in:
Slinetrac 2026-03-18 13:34:46 +08:00 committed by GitHub
parent 8b99bb5150
commit 6685e7a1bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 15 deletions

3
.gitattributes vendored
View File

@ -1 +1,2 @@
.github/workflows/*.lock.yml linguist-generated=true merge=ours .github/workflows/*.lock.yml linguist-generated=true merge=ours
Changelog.md merge=union

View File

@ -137,7 +137,7 @@ jobs:
target: aarch64-apple-darwin target: aarch64-apple-darwin
- os: macos-latest - os: macos-latest
target: x86_64-apple-darwin target: x86_64-apple-darwin
- os: ubuntu-24.04 - os: ubuntu-22.04
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
@ -165,19 +165,10 @@ jobs:
cache-workspace-crates: true cache-workspace-crates: true
- name: Install dependencies (ubuntu only) - name: Install dependencies (ubuntu only)
if: matrix.os == 'ubuntu-24.04' if: matrix.os == 'ubuntu-22.04'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt install \ sudo apt-get install -y libxslt1.1 libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf
libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Install x86 OpenSSL (macOS only) - name: Install x86 OpenSSL (macOS only)
if: matrix.target == 'x86_64-apple-darwin' if: matrix.target == 'x86_64-apple-darwin'

View File

@ -34,7 +34,11 @@ export default defineConfig([
globals: globals.browser, globals: globals.browser,
parserOptions: { parserOptions: {
projectService: { projectService: {
allowDefaultProject: ['eslint.config.ts', 'src/polyfills/*.js'], allowDefaultProject: [
'eslint.config.ts',
`vite.config.mts`,
'src/polyfills/*.js',
],
}, },
}, },
}, },

View File

@ -127,7 +127,7 @@
"eslint --fix --max-warnings=0", "eslint --fix --max-warnings=0",
"prettier --write" "prettier --write"
], ],
"*.{js,mjs,css,scss,json,md,toml}": [ "*.{js,mjs,css,scss,json,md,toml,yaml,yml}": [
"prettier --write" "prettier --write"
] ]
}, },