46 lines
1.6 KiB
YAML
Raw Normal View History

2023-09-16 20:09:52 +08:00
name: 运行主程序
2023-06-18 21:34:43 +08:00
on: [push, workflow_dispatch]
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
- shell: bash # https://github.com/actions/runner-images/issues/6668
2023-06-18 21:34:43 +08:00
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-06-18 21:34:43 +08:00
${{ matrix.command }} dd --img=https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.3.8.tar.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