aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-02 21:00:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-04 01:09:23 +0300
commitcc6c7badc0d8a4b0d0b6e297d283d0b4471dc866 (patch)
treec24ad5f05554fbc7773409b0bfe2109053946dd4 /.github
parentREADME: update (diff)
downloadsetup-cygwin-cc6c7badc0d8a4b0d0b6e297d283d0b4471dc866.tar.gz
setup-cygwin-cc6c7badc0d8a4b0d0b6e297d283d0b4471dc866.zip
add an option to get rid of symlinks in /bin
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml37
1 files changed, 28 insertions, 9 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4cb74e7..5866f16 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -13,19 +13,20 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [windows-2019]
platform: [x86, x64]
env: ['', 'winsymlinks:nativestrict']
+ hardlinks: [0, 1]
include:
- - {os: windows-2019, name: 'Windows 2019'}
+ - {env: '', env_descr: 'nativestrict: 0'}
+ - {env: 'winsymlinks:nativestrict', env_descr: 'nativestrict: 1'}
- - {env: '', env_descr: 'Empty %CYGWIN%'}
- - {env: 'winsymlinks:nativestrict', env_descr: 'Custom %CYGWIN%'}
+ - {hardlinks: 0, hardlinks_descr: 'Hardlinks: 0'}
+ - {hardlinks: 1, hardlinks_descr: 'Hardlinks: 1'}
- runs-on: '${{ matrix.os }}'
+ runs-on: windows-2019
- name: '${{ matrix.name }} / ${{ matrix.platform }} / ${{ matrix.env_descr }}'
+ name: '${{ matrix.platform }} / ${{ matrix.env_descr }} / ${{ matrix.hardlinks_descr }}'
defaults:
run:
@@ -35,25 +36,43 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
+ - name: Clean up PATH
+ uses: egor-tensin/cleanup-path@v1
+ if: runner.os == 'Windows'
+
- name: Set up Cygwin
id: setup
uses: ./
with:
platform: '${{ matrix.platform }}'
install-dir: C:\cg
- packages: cmake gcc
+ packages: cmake gcc python3
env: '${{ matrix.env }}'
+ symlinks-to-hardlinks: '${{ matrix.hardlinks }}'
- name: Run bash
run: |
- $output = C:\cg\bin\bash.exe --login -c 'echo foobar'
+ $((Get-Command bash.exe).Path -eq 'C:\cg\bin\bash.exe') -or $(throw (Get-Command bash.exe))
+ $output = bash.exe --login -c 'echo foobar'
$($output -eq 'foobar') -or $(throw $output)
- name: Run cmake
run: |
- C:\cg\bin\cmake.exe --version
+ $((Get-Command cmake.exe).Path -eq 'C:\cg\bin\cmake.exe') -or $(throw (Get-Command cmake.exe))
+ cmake.exe --version
- name: Check CYGWIN environment variable
run: |
$(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
+ run: |
+ $(Get-Command python3.exe -ErrorAction SilentlyContinue) -and $(throw (Get-Command python3.exe))
+ if: '!matrix.hardlinks'
+
+ - name: python3 is a hardlink
+ run: |
+ $((Get-Command python3.exe).Path -eq 'C:\cg\bin\python3.exe') -or $(throw (Get-Command python3.exe))
+ python3.exe --version
+ if: matrix.hardlinks