-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.05 KB
/
interactive-command.yml
File metadata and controls
47 lines (40 loc) · 1.05 KB
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
38
39
40
41
42
43
44
45
46
47
name: Interactive Command Execution
on:
workflow_dispatch:
inputs:
command:
description: "Command to execute"
required: true
default: "demo/all-demos.sh"
os:
description: "Operating system to run the command on"
required: true
default: "macos-latest"
type: choice
options:
- ubuntu-latest
- macos-latest
install_gnu_tools:
description: "Install GNU tools on macOS"
required: true
default: false
type: boolean
run-name: |
ICE: ${{ inputs.command }} (${{ inputs.os }}, GNU? ${{ inputs.install_gnu_tools }})
permissions:
contents: read
jobs:
run-command:
runs-on: ${{ inputs.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: Install GNU tools on macOS
if: ${{ inputs.install_gnu_tools }}
run: |
bin/gnu-install.sh
- name: Execute command
run: ${{ inputs.command }}