From 5e27a630072aac95ba66478f270a3de5901b38f7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 4 Jan 2021 12:55:24 +0300 Subject: rename symlinks-to-hardlinks to just hardlinks --- .github/workflows/test.yml | 2 +- README.md | 28 ++++++++++++++-------------- action.yml | 6 +++--- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5866f16..41c4079 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: install-dir: C:\cg packages: cmake gcc python3 env: '${{ matrix.env }}' - symlinks-to-hardlinks: '${{ matrix.hardlinks }}' + hardlinks: '${{ matrix.hardlinks }}' - name: Run bash run: | diff --git a/README.md b/README.md index 497353d..2f63653 100644 --- a/README.md +++ b/README.md @@ -28,24 +28,24 @@ Provide a custom value using the `env` parameter. An example is package python3, which (as of January 2021) installs symlink "python3", pointing to the real executable "python3.8.exe". Calling Cygwin symlinks from Windows' command prompt is unsupported, but -there's an option to convert them to hardlinks instead (the -`symlinks-to-hardlinks` parameter). +there's an option to convert them to hardlinks instead (the `hardlinks` +parameter). API --- -| Input | Value | Default | Description -| --------------------- | ------- | ------- | ----------- -| platform | x64 | Yes | Install the 64-bit version. -| | *Other* | No | Install the 32-bit version. -| install-dir | *Empty* | Yes | Install to C:\tools\cygwin. -| | *Other* | No | Install to the specified directory. -| packages | *Empty* | Yes | Don't install any additional packages. -| | *Other* | No | Space-separated package names. -| env | *Empty* | Yes | Set `%CYGWIN%` to an empty string. -| | *Other* | No | Set `%CYGWIN%` to the specified value. -| symlinks-to-hardlinks | *Other* | Yes | Don't convert any symlinks. -| | 1 | No | Convert symlinks in /usr/bin to hardlinks. +| Input | Value | Default | Description +| ----------- | ------- | ------- | ----------- +| platform | x64 | Yes | Install the 64-bit version. +| | *Other* | No | Install the 32-bit version. +| install-dir | *Empty* | Yes | Install to C:\tools\cygwin. +| | *Other* | No | Install to the specified directory. +| packages | *Empty* | Yes | Don't install any additional packages. +| | *Other* | No | Space-separated package names. +| env | *Empty* | Yes | Set `%CYGWIN%` to an empty string. +| | *Other* | No | Set `%CYGWIN%` to the specified value. +| hardlinks | *Other* | Yes | Don't convert any symlinks. +| | 1 | No | Convert symlinks in /usr/bin to hardlinks. The paths to the Cygwin binaries are added to the PATH variable. diff --git a/action.yml b/action.yml index 333e43f..fc5ecc4 100644 --- a/action.yml +++ b/action.yml @@ -16,7 +16,7 @@ inputs: env: description: Value to set as the CYGWIN environment variable required: false - symlinks-to-hardlinks: + hardlinks: description: Convert symlinks in /usr/bin to hardlinks required: false default: 0 @@ -77,9 +77,9 @@ runs: - run: | New-Variable install_dir -Value '${{ inputs.install-dir }}' -Option Constant - New-Variable symlinks_to_hardlinks -Value ('${{ inputs.symlinks-to-hardlinks }}' -eq '1') -Option Constant + New-Variable hardlinks -Value ('${{ inputs.hardlinks }}' -eq '1') -Option Constant - if ($symlinks_to_hardlinks) { + if ($hardlinks) { New-Variable bash -Value (Join-Path $install_dir bin bash.exe) -Option Constant echo @' while IFS= read -d '' -r link_path; do -- cgit v1.2.3