forked from chenall/grub4dos-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
37 lines (36 loc) · 1.05 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: 'grub4dos dev'
description: 'grub4dos build env'
author: 'chenall'
inputs:
useQemu:
description: '使用 qemu 虚拟的 tinycorelinux 32位环境进行编译'
default: 0
srcDir:
description: 'grub4dos-src'
required: true
default: "."
runs:
using: 'composite'
steps:
- id: pre-debug-check
run: $GITHUB_ACTION_PATH/tmate.sh
shell: bash
- id: start-grubdev
env:
INPUT_USEQEMU: ${{ inputs.useQemu }}
run: |
cd $GITHUB_ACTION_PATH && chmod +x ./start-grubdev.sh && ./start-grubdev.sh
shell: bash
- id: start-build
env:
INPUT_USEQEMU: ${{ inputs.useQemu }}
grub4dos_src: ${{ inputs.srcDir }}
COMMIT_RANGE: "${{ github.event.before || github.event.pull_request.base.sha }}...${{ github.sha }}"
run: chmod +x $GITHUB_ACTION_PATH/build.sh && $GITHUB_ACTION_PATH/build.sh
shell: bash
- id: end-debug-check
run: $GITHUB_ACTION_PATH/tmate.sh
shell: bash
branding:
icon: 'terminal'
color: 'gray-dark'