66 command :
77 description : " Command to execute"
88 required : true
9- default : " sed --version "
9+ default : " demo/all-demos.sh "
1010 os :
1111 description : " Operating system to run the command on"
1212 required : true
13- default : " ubuntu -latest"
13+ default : " macos -latest"
1414 type : choice
1515 options :
1616 - ubuntu-latest
2121 default : false
2222 type : boolean
2323
24+ run-name : |
25+ ICE: ${{ inputs.command }} (${{ inputs.os }}, GNU? ${{ inputs.install_gnu_tools }})
26+
2427permissions :
2528 contents : read
2629
@@ -29,30 +32,16 @@ jobs:
2932 runs-on : ${{ inputs.os }}
3033
3134 steps :
35+ - name : Checkout repository
36+ uses : actions/checkout@v4
37+ with :
38+ fetch-depth : 1
39+ submodules : recursive
40+
3241 - name : Install GNU tools on macOS
33- if : runner.os == 'macos-latest' && inputs.install_gnu_tools == 'true'
42+ if : ${{ inputs.install_gnu_tools }}
3443 run : |
35- brew install gnu-sed gawk grep findutils coreutils gnu-tar gnu-time gnu-indent gnu-getopt gnu-which
36- brew install gdate gxargs gcut ghead gtail gtr guniq gwc gdiff
37- echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> $GITHUB_ENV
38- echo 'export PATH="/usr/local/opt/gawk/libexec/gnubin:$PATH"' >> $GITHUB_ENV
39- echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> $GITHUB_ENV
40- echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> $GITHUB_ENV
41- echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> $GITHUB_ENV
42- echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> $GITHUB_ENV
43- echo 'export PATH="/usr/local/opt/gnu-time/libexec/gnubin:$PATH"' >> $GITHUB_ENV
44- echo 'export PATH="/usr/local/opt/gnu-indent/libexec/gnubin:$PATH"' >> $GITHUB_ENV
45- echo 'export PATH="/usr/local/opt/gnu-getopt/libexec/gnubin:$PATH"' >> $GITHUB_ENV
46- echo 'export PATH="/usr/local/opt/gnu-which/libexec/gnubin:$PATH"' >> $GITHUB_ENV
47- echo 'export PATH="/usr/local/opt/gdate/libexec/gnubin:$PATH"' >> $GITHUB_ENV
48- echo 'export PATH="/usr/local/opt/gxargs/libexec/gnubin:$PATH"' >> $GITHUB_ENV
49- echo 'export PATH="/usr/local/opt/gcut/libexec/gnubin:$PATH"' >> $GITHUB_ENV
50- echo 'export PATH="/usr/local/opt/ghead/libexec/gnubin:$PATH"' >> $GITHUB_ENV
51- echo 'export PATH="/usr/local/opt/gtail/libexec/gnubin:$PATH"' >> $GITHUB_ENV
52- echo 'export PATH="/usr/local/opt/gtr/libexec/gnubin:$PATH"' >> $GITHUB_ENV
53- echo 'export PATH="/usr/local/opt/guniq/libexec/gnubin:$PATH"' >> $GITHUB_ENV
54- echo 'export PATH="/usr/local/opt/gwc/libexec/gnubin:$PATH"' >> $GITHUB_ENV
55- echo 'export PATH="/usr/local/opt/gdiff/libexec/gnubin:$PATH"' >> $GITHUB_ENV
44+ bin/gnu-install.sh
5645
5746 - name : Execute command
5847 run : ${{ inputs.command }}
0 commit comments