2023-09-16 20:09:52 +08:00
|
|
|
name: 运行主程序
|
2023-11-04 00:02:15 +08:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- "reinstall.*"
|
2023-06-18 21:34:43 +08:00
|
|
|
jobs:
|
2023-09-16 20:09:52 +08:00
|
|
|
run:
|
|
|
|
name: 运行主程序
|
2023-06-18 21:34:43 +08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest]
|
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
2024-10-13 22:58:12 +08:00
|
|
|
command: sudo bash reinstall.sh --debug --password 123@@@
|
2023-06-18 21:34:43 +08:00
|
|
|
- os: windows-latest
|
2024-10-13 22:58:12 +08:00
|
|
|
command: ./reinstall.bat --debug --password 123@@@
|
2023-06-18 21:34:43 +08:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-16 20:09:52 +08:00
|
|
|
- run: |
|
2023-06-18 21:34:43 +08:00
|
|
|
git config --global core.autocrlf false
|
2023-09-16 20:09:52 +08:00
|
|
|
- uses: actions/checkout@v4
|
2024-01-28 00:24:38 +08:00
|
|
|
- run: |
|
2024-07-07 17:07:22 +08:00
|
|
|
${{ matrix.command }} centos
|
2024-11-26 22:09:05 +08:00
|
|
|
${{ matrix.command }} almalinux 8
|
2024-04-25 22:43:11 +08:00
|
|
|
${{ matrix.command }} rocky 9
|
2023-09-10 22:23:04 +08:00
|
|
|
${{ matrix.command }} fedora
|
|
|
|
${{ matrix.command }} ubuntu
|
2024-04-25 22:43:11 +08:00
|
|
|
${{ matrix.command }} debian
|
2024-07-07 17:07:22 +08:00
|
|
|
${{ matrix.command }} debian --ci
|
2024-05-03 21:37:07 +08:00
|
|
|
${{ matrix.command }} kali
|
2023-09-10 22:23:04 +08:00
|
|
|
${{ matrix.command }} alpine
|
|
|
|
${{ matrix.command }} opensuse
|
2023-08-01 22:43:19 +08:00
|
|
|
${{ matrix.command }} arch
|
2023-09-16 20:09:52 +08:00
|
|
|
${{ matrix.command }} gentoo
|
2023-07-18 00:29:46 +08:00
|
|
|
|
2024-04-25 22:43:11 +08:00
|
|
|
${{ matrix.command }} netboot.xyz
|
|
|
|
${{ matrix.command }} dd --img=https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-SelfInstall.raw.xz
|
2024-07-07 17:07:22 +08:00
|
|
|
${{ matrix.command }} windows --image-name='Windows 11 Pro'
|
2024-04-25 22:43:11 +08:00
|
|
|
|
2023-06-18 21:34:43 +08:00
|
|
|
# 测试失败例子
|
2024-01-28 00:24:38 +08:00
|
|
|
# ${{ matrix.command }} wrong-os
|
|
|
|
# ${{ matrix.command }} dd --img=https://github.com/
|
|
|
|
# ${{ matrix.command }} windows --iso=https://github.com/ --image-name=abc
|