ci: 统一使用 ubuntu 24.04 运行 ci(20.04 将被弃用) (#271)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-02-19 17:28:04 +08:00
committed by GitHub
parent ab0533210f
commit 395ef0013a
4 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ on:
jobs:
build-frontend:
name: Build frontend
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
defaults:
run:
working-directory: web
@@ -41,12 +41,12 @@ jobs:
matrix:
platform:
- release_for: Linux-x86_64
os: ubuntu-20.04
os: ubuntu-24.04
target: x86_64-unknown-linux-musl
bin: bili-sync-rs
name: bili-sync-rs-Linux-x86_64-musl.tar.gz
- release_for: Linux-aarch64
os: ubuntu-20.04
os: ubuntu-24.04
target: aarch64-unknown-linux-musl
bin: bili-sync-rs
name: bili-sync-rs-Linux-aarch64-musl.tar.gz

View File

@@ -10,7 +10,7 @@ on:
jobs:
doc:
name: Build documentation
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
defaults:
run:
working-directory: docs

View File

@@ -20,7 +20,7 @@ env:
jobs:
tests:
name: Run Clippy and tests
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- name: Checkout repo

View File

@@ -11,7 +11,7 @@ jobs:
github-release:
name: Create GitHub Release
needs: build-binary
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
@@ -30,7 +30,7 @@ jobs:
docker-release:
name: Create Docker Image
needs: build-binary
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
contents: write
steps: