Repository navigation
syscall: skip unsupported symlink chmod #2182
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test rsync on Cygwin | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '.github/workflows/*.yml' | |
| - '!.github/workflows/cygwin-build.yml' | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - '.github/workflows/*.yml' | |
| - '!.github/workflows/cygwin-build.yml' | |
| schedule: | |
| - cron: '42 8 * * *' | |
| jobs: | |
| test: | |
| runs-on: windows-2022 | |
| name: Test rsync on Cygwin | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: cygwin | |
| run: | | |
| $setup = Join-Path $Env:RUNNER_TEMP 'setup-x86_64.exe' | |
| $sums = Join-Path $Env:RUNNER_TEMP 'cygwin-sha512.sum' | |
| $packages = 'make,autoconf,automake,gcc-core,attr,libattr-devel,python39,python39-pip,libzstd-devel,liblz4-devel,libssl-devel,libxxhash0,libxxhash-devel,libidn2-devel' | |
| Invoke-WebRequest https://cygwin.com/setup-x86_64.exe -OutFile $setup | |
| Invoke-WebRequest https://cygwin.com/sha512.sum -OutFile $sums | |
| $sum = Select-String -LiteralPath $sums -Pattern '^[0-9a-fA-F]{128}\s+\*?setup-x86_64\.exe$' | Select-Object -First 1 | |
| if (-not $sum) { | |
| throw 'setup-x86_64.exe is missing from Cygwin sha512.sum' | |
| } | |
| $expected = ($sum.Line -split '\s+')[0] | |
| $actual = (Get-FileHash -LiteralPath $setup -Algorithm SHA512).Hash | |
| if ($actual -ine $expected) { | |
| throw 'Cygwin setup SHA-512 mismatch' | |
| } | |
| $arguments = @( | |
| '--quiet-mode', | |
| '--no-desktop', | |
| '--no-startmenu', | |
| '--no-shortcuts', | |
| '--root', 'C:\tools\cygwin', | |
| '--local-package-dir', (Join-Path $Env:RUNNER_TEMP 'cygwin-packages'), | |
| '--site', 'https://mirrors.kernel.org/sourceware/cygwin/', | |
| '--packages', $packages | |
| ) | |
| $install = Start-Process -FilePath $setup -ArgumentList $arguments -Wait -PassThru -NoNewWindow | |
| if ($install.ExitCode -ne 0) { | |
| exit $install.ExitCode | |
| } | |
| $bash = 'C:\tools\cygwin\bin\bash.exe' | |
| if (-not (Test-Path -LiteralPath $bash)) { | |
| throw 'Cygwin setup did not install bash' | |
| } | |
| & $bash -lc 'command -v make aclocal gcc python3 >/dev/null' | |
| if ($LASTEXITCODE -ne 0) { | |
| throw 'Cygwin setup did not install all required build tools' | |
| } | |
| echo 'C:/tools/cygwin/bin' >>$Env:GITHUB_PATH | |
| - name: commonmark | |
| run: bash -c 'python3 -mpip install --user commonmark' | |
| - name: configure | |
| run: bash -c './configure --with-rrsync' | |
| - name: make | |
| run: bash -c 'make' | |
| - name: install | |
| run: bash -c 'make install' | |
| - name: info | |
| run: bash -c '/usr/local/bin/rsync --version' | |
| - name: check | |
| # chown-fake / devices-fake / xattrs / xattrs-hlink now RUN on Cygwin | |
| # (rsyncfns.py drives xattrs via getfattr/setfattr from the `attr` | |
| # package installed above), verified on a real Cygwin host. The real | |
| # chown/devices tests still skip (need root/mknod), as do the | |
| # RESOLVE_BENEATH symlink-race tests. Cygwin runs non-root, so the | |
| # namecvt empty-response regression can run despite its common root skip. | |
| run: bash -c 'RSYNC_EXPECT_SKIPPED=@testsuite/skiplist/common.txt,@testsuite/skiplist/cygwin.txt,-daemon-namecvt-empty-response make check' | |
| - name: check (TCP daemon transport) | |
| # Second run with daemon tests over a real loopback rsyncd; the default | |
| # 'make check' above uses the secure stdio-pipe transport. | |
| run: bash -c './runtests.py --rsync-bin=`pwd`/rsync.exe --use-tcp -j 8' | |
| - name: ssl file list | |
| run: bash -c 'PATH="/usr/local/bin:$PATH" rsync-ssl --no-motd download.samba.org::rsyncftp/ || true' | |
| - name: save artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| retention-days: 45 | |
| name: cygwin-bin | |
| path: | | |
| rsync.exe | |
| rsync-ssl | |
| rsync.1 | |
| rsync-ssl.1 | |
| rsyncd.conf.5 | |
| rrsync.1 | |
| rrsync |