aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-11-07 22:44:16 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-11-07 22:47:35 +0300
commit0999a8b08fd276d60252f765b841b632f5d9c619 (patch)
tree9000f2f413cfe44040e5455042b8f7cea888b082
parentworkflows/test: use windows-latest (diff)
downloadsetup-cygwin-0999a8b08fd276d60252f765b841b632f5d9c619.tar.gz
setup-cygwin-0999a8b08fd276d60252f765b841b632f5d9c619.zip
workflows/test: python3 is no longer a symlink
The upstream project seems to have made a decision to no longer make python3 a symlink to python3.X.exe, which is weird. Now we check the same thing about cc, which is still a symlink.
-rw-r--r--.github/workflows/test.yml12
-rw-r--r--README.md10
2 files changed, 11 insertions, 11 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6ed85a0..694e942 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -45,7 +45,7 @@ jobs:
with:
platform: '${{ matrix.platform }}'
install-dir: C:\cg
- packages: cmake gcc python3
+ packages: cmake gcc
env: '${{ matrix.env }}'
hardlinks: '${{ matrix.hardlinks }}'
@@ -65,15 +65,15 @@ jobs:
$(Test-Path env:CYGWIN) -or $(throw '%CYGWIN% is not set!')
$($env:CYGWIN -eq '${{ matrix.env }}') -or $(throw "Unexpected %CYGWIN% value: $env:CYGWIN")
- - name: python3 is a symlink
+ - name: cc is a symlink
run: |
- $(Get-Command python3.exe -ErrorAction SilentlyContinue) -and $(throw (Get-Command python3.exe))
+ $(Get-Command cc.exe -ErrorAction SilentlyContinue) -and $(throw (Get-Command cc.exe))
if: '!matrix.hardlinks'
- - name: python3 is a hardlink
+ - name: cc is a hardlink
run: |
- $((Get-Command python3.exe).Path -eq 'C:\cg\bin\python3.exe') -or $(throw (Get-Command python3.exe))
- python3.exe --version
+ $((Get-Command cc.exe).Path -eq 'C:\cg\bin\cc.exe') -or $(throw (Get-Command cc.exe))
+ cc.exe --version
if: matrix.hardlinks
shell_igncr:
diff --git a/README.md b/README.md
index 3efd13d..dfe4689 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ Use it in your workflow like this:
uses: egor-tensin/setup-cygwin@v3
with:
platform: x64
- packages: cmake python3
+ packages: cmake gcc
# Cygwin executables are added to PATH, so you can call them directly:
- run: |
@@ -96,11 +96,11 @@ Executable symlinks
-------------------
Some packages install symlinks in /usr/bin along with real executables.
-An example is package "python3", which (as of January 2021) installs symlink
-`python3`, pointing to the real executable `python3.8.exe`.
+An example is package "gcc", which (as of November 2021) installs symlink `cc`,
+pointing to the real executable `gcc.exe`.
Calling Cygwin symlinks from Windows' command prompt is unsupported, but might
-be convenient (e.g. if you don't know the exact Python version), so there's an
-option to convert them to hardlinks instead (the `hardlinks` parameter).
+be convenient so there's an option to convert them to hardlinks instead (the
+`hardlinks` parameter).
License
-------