mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
core: 不重要的优化
This commit is contained in:
50
.github/workflows/run_reinstall.yml
vendored
Normal file
50
.github/workflows/run_reinstall.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: 运行主程序
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
paths:
|
||||
- "reinstall.*"
|
||||
jobs:
|
||||
run:
|
||||
name: 运行主程序
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
command: sudo bash reinstall.sh --debug
|
||||
- os: windows-latest
|
||||
command: ./reinstall.bat --debug
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- run: |
|
||||
git config --global core.autocrlf false
|
||||
- uses: actions/checkout@v4
|
||||
- shell: bash # https://github.com/actions/runner-images/issues/6668
|
||||
run: |
|
||||
${{ matrix.command }} centos 7
|
||||
${{ matrix.command }} alma-8
|
||||
${{ matrix.command }} rocky 8
|
||||
${{ matrix.command }} fedora
|
||||
${{ matrix.command }} ubuntu
|
||||
${{ matrix.command }} debian 12
|
||||
${{ matrix.command }} alpine
|
||||
${{ matrix.command }} netboot.xyz
|
||||
${{ matrix.command }} dd --img=https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-SelfInstall.raw.xz
|
||||
|
||||
# 测试 cloud image
|
||||
${{ matrix.command }} centos --ci
|
||||
${{ matrix.command }} alma --ci
|
||||
${{ matrix.command }} rocky --ci
|
||||
${{ matrix.command }} fedora-38 --ci
|
||||
${{ matrix.command }} ubuntu 22.04 --ci
|
||||
${{ matrix.command }} debian --ci
|
||||
${{ matrix.command }} opensuse
|
||||
${{ matrix.command }} arch
|
||||
${{ matrix.command }} gentoo
|
||||
|
||||
# 测试失败例子
|
||||
! ${{ matrix.command }} wrong-os
|
||||
! ${{ matrix.command }} dd --img=https://github.com/
|
||||
! ${{ matrix.command }} windows --iso=https://github.com/ --image-name=abc
|
||||
Reference in New Issue
Block a user