reinstall/.github/workflows/run_reinstall.yml

50 lines
1.6 KiB
YAML
Raw Normal View History

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
command: sudo bash reinstall.sh --debug
- os: windows-latest
command: ./reinstall.bat --debug
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
- run: |
2023-09-10 22:23:04 +08:00
${{ matrix.command }} centos 7
2023-06-18 21:34:43 +08:00
${{ matrix.command }} alma-8
2023-09-10 22:23:04 +08:00
${{ matrix.command }} rocky 8
${{ matrix.command }} fedora
${{ matrix.command }} ubuntu
${{ matrix.command }} debian 12
${{ matrix.command }} alpine
2023-11-09 22:27:07 +08:00
${{ matrix.command }} netboot.xyz
2023-09-21 00:12:35 +08:00
${{ matrix.command }} dd --img=https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-SelfInstall.raw.xz
2023-07-18 00:29:46 +08:00
# 测试 cloud image
2023-09-10 22:23:04 +08:00
${{ matrix.command }} centos --ci
${{ matrix.command }} alma --ci
${{ matrix.command }} rocky --ci
2023-08-01 22:43:19 +08:00
${{ matrix.command }} fedora-38 --ci
2023-09-10 22:23:04 +08:00
${{ matrix.command }} ubuntu 22.04 --ci
${{ matrix.command }} debian --ci
${{ 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
2023-06-18 21:34:43 +08:00
# 测试失败例子
# ${{ matrix.command }} wrong-os
# ${{ matrix.command }} dd --img=https://github.com/
# ${{ matrix.command }} windows --iso=https://github.com/ --image-name=abc