|
4 | 4 | steps: |
5 | 5 | - name: Install gnuplot (via apt-get) |
6 | 6 | shell: bash |
7 | | - run: | |
8 | | - if ${{ toJSON( runner.os == 'Linux' ) }}; then |
9 | | - echo "::group::Install gnuplot (via apt-get)" |
10 | | - sudo apt-get -y update && sudo apt-get install --no-install-recommends -y gnuplot gnuplot-qt |
11 | | - echo "::endgroup::" |
12 | | - fi |
| 7 | + if: runner.os == 'Linux' |
| 8 | + run: sudo apt-get -y update && sudo apt-get install --no-install-recommends -y gnuplot gnuplot-qt |
13 | 9 | - name: Install gnuplot (via brew) |
14 | 10 | shell: bash |
| 11 | + if: runner.os == 'macOS' |
15 | 12 | run: | |
16 | | - if ${{ toJSON( runner.os == 'macOS' ) }}; then |
17 | | - echo "::group::Install gnuplot (via brew)" |
18 | | - brew update |
19 | | - brew upgrade python || true # currently (2024-03-25) 3.12 link fails |
20 | | - HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gnuplot |
21 | | - echo "::endgroup::" |
22 | | - fi |
| 13 | + brew update |
| 14 | + brew upgrade python || true # currently (2024-03-25) 3.12 link fails |
| 15 | + HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gnuplot |
23 | 16 | - name: Install gnuplot (extract from archive) |
24 | 17 | shell: bash |
| 18 | + if: runner.os == 'Windows' |
25 | 19 | env: |
26 | 20 | GNUPLOT_URI: "https://sourceforge.net/projects/gnuplot/files/gnuplot/5.4.6/gp546-win64-mingw-2.7z/download" |
27 | 21 | GNUPLOT_FILE: "gp546-win64-mingw-2.7z" |
28 | 22 | run: | |
29 | | - if ${{ toJSON( runner.os == 'Windows' ) }}; then |
30 | | - echo "::group::Install gnuplot (extract from archive)" |
31 | | - num_attempts=1 |
32 | | - until \ |
33 | | - pwsh -c ' [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"; $request = Invoke-WebRequest -MaximumRetryCount 3 -UserAgent Curl -Uri $Env:GNUPLOT_URI -OutFile $Env:GNUPLOT_FILE' \ |
34 | | - || [[ $num_attempts -gt 3 ]]; do |
35 | | - echo $((num_attempts++)); |
36 | | - done |
37 | | - 7z x $GNUPLOT_FILE -o.. |
38 | | - pwsh -c 'echo "'$( cygpath -w $( realpath ../gnuplot/bin ) )'" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append' |
39 | | - echo "::endgroup::" |
40 | | - fi |
| 23 | + num_attempts=1 |
| 24 | + until \ |
| 25 | + pwsh -c ' [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"; $request = Invoke-WebRequest -MaximumRetryCount 3 -UserAgent Curl -Uri $Env:GNUPLOT_URI -OutFile $Env:GNUPLOT_FILE' \ |
| 26 | + || [[ $num_attempts -gt 3 ]]; do |
| 27 | + echo $((num_attempts++)); |
| 28 | + done |
| 29 | + 7z x $GNUPLOT_FILE -o.. |
| 30 | + pwsh -c 'echo "'$( cygpath -w $( realpath ../gnuplot/bin ) )'" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append' |
0 commit comments