From: Wayne Davison Date: Wed, 10 Apr 2024 20:02:34 +0000 (-0700) Subject: Separate the builds and make Cygwin always run. X-Git-Url: http://git.samba.org/?p=rsync.git;a=commitdiff_plain;h=8bc363cc9fcc57a352135e244497469ce9b2c4f8 Separate the builds and make Cygwin always run. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index f407dab7..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,126 +0,0 @@ -name: build - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - schedule: - - cron: '42 8 * * *' - -jobs: - - ubuntu-build: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: prep - run: | - sudo apt-get install acl libacl1-dev attr libattr1-dev liblz4-dev libzstd-dev libxxhash-dev python3-cmarkgfm openssl - echo "/usr/local/bin" >>$GITHUB_PATH - - name: configure - run: ./configure --with-rrsync - - name: make - run: make - - name: install - run: sudo make install - - name: info - run: rsync --version - - name: check - run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check - - name: check30 - run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check30 - - name: check29 - run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check29 - - name: ssl file list - run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true - - name: save artifact - uses: actions/upload-artifact@v3 - with: - name: ubuntu-bin - path: | - rsync - rsync-ssl - rsync.1 - rsync-ssl.1 - rsyncd.conf.5 - rrsync.1 - rrsync - - macos-build: - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: prep - run: | - brew install automake openssl xxhash zstd lz4 - sudo pip3 install commonmark - echo "/usr/local/bin" >>$GITHUB_PATH - - name: configure - run: CPPFLAGS=-I/usr/local/opt/openssl/include/ LDFLAGS=-L/usr/local/opt/openssl/lib/ ./configure --with-rrsync - - name: make - run: make - - name: install - run: sudo make install - - name: info - run: rsync --version - - name: check - run: sudo RSYNC_EXPECT_SKIPPED=acls-default,chmod-temp-dir,chown-fake,devices-fake,dir-sgid,protected-regular,xattrs-hlink,xattrs make check - - name: ssl file list - run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true - - name: save artifact - uses: actions/upload-artifact@v3 - with: - name: macos-bin - path: | - rsync - rsync-ssl - rsync.1 - rsync-ssl.1 - rsyncd.conf.5 - rrsync.1 - rrsync - - cygwin-build: - runs-on: windows-2022 - if: (github.event_name == 'schedule' || contains(github.event.head_commit.message, '[buildall]')) - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: cygwin - run: choco install -y --no-progress cygwin cyg-get - - name: prep - run: | - cyg-get make autoconf automake gcc-core attr libattr-devel python39 python39-pip libzstd-devel liblz4-devel libssl-devel libxxhash0 libxxhash-devel - 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 - run: bash -c 'RSYNC_EXPECT_SKIPPED=acls-default,acls,chown,devices,dir-sgid,protected-regular make check' - - 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@v3 - with: - name: cygwin-bin - path: | - rsync.exe - rsync-ssl - rsync.1 - rsync-ssl.1 - rsyncd.conf.5 - rrsync.1 - rrsync diff --git a/.github/workflows/cygwin-build.yml b/.github/workflows/cygwin-build.yml new file mode 100644 index 00000000..a9635f2e --- /dev/null +++ b/.github/workflows/cygwin-build.yml @@ -0,0 +1,50 @@ +name: Test rsync on Cygwin + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + 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: choco install -y --no-progress cygwin cyg-get + - name: prep + run: | + cyg-get make autoconf automake gcc-core attr libattr-devel python39 python39-pip libzstd-devel liblz4-devel libssl-devel libxxhash0 libxxhash-devel + 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 + run: bash -c 'RSYNC_EXPECT_SKIPPED=acls-default,acls,chown,devices,dir-sgid,protected-regular make check' + - 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@v3 + with: + name: cygwin-bin + path: | + rsync.exe + rsync-ssl + rsync.1 + rsync-ssl.1 + rsyncd.conf.5 + rrsync.1 + rrsync diff --git a/.github/workflows/freebsd-build.yml b/.github/workflows/freebsd-build.yml index 2081f622..d82b160b 100644 --- a/.github/workflows/freebsd-build.yml +++ b/.github/workflows/freebsd-build.yml @@ -5,6 +5,8 @@ on: branches: [ master ] pull_request: branches: [ master ] + schedule: + - cron: '42 8 * * *' jobs: test: @@ -14,7 +16,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Test in FreeBSD + - name: Test in FreeBSD VM id: test uses: vmactions/freebsd-vm@v1 with: diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml new file mode 100644 index 00000000..bb85bb00 --- /dev/null +++ b/.github/workflows/macos-build.yml @@ -0,0 +1,47 @@ +name: Test rsync on macOS + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + schedule: + - cron: '42 8 * * *' + +jobs: + test: + runs-on: macos-latest + name: Test rsync on macOS + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: prep + run: | + brew install automake openssl xxhash zstd lz4 + sudo pip3 install commonmark + echo "/usr/local/bin" >>$GITHUB_PATH + - name: configure + run: CPPFLAGS=-I/usr/local/opt/openssl/include/ LDFLAGS=-L/usr/local/opt/openssl/lib/ ./configure --with-rrsync + - name: make + run: make + - name: install + run: sudo make install + - name: info + run: rsync --version + - name: check + run: sudo RSYNC_EXPECT_SKIPPED=acls-default,chmod-temp-dir,chown-fake,devices-fake,dir-sgid,protected-regular,xattrs-hlink,xattrs make check + - name: ssl file list + run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true + - name: save artifact + uses: actions/upload-artifact@v3 + with: + name: macos-bin + path: | + rsync + rsync-ssl + rsync.1 + rsync-ssl.1 + rsyncd.conf.5 + rrsync.1 + rrsync diff --git a/.github/workflows/solaris-build.yml b/.github/workflows/solaris-build.yml index 7de3d35e..557a5781 100644 --- a/.github/workflows/solaris-build.yml +++ b/.github/workflows/solaris-build.yml @@ -5,16 +5,18 @@ on: branches: [ master ] pull_request: branches: [ master ] + schedule: + - cron: '42 8 * * *' jobs: - solaris-test: + test: runs-on: ubuntu-latest name: Test rsync on Solaris steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Test in Solaris + - name: Test in Solaris VM id: test uses: vmactions/solaris-vm@v1 with: @@ -27,3 +29,15 @@ jobs: make ./rsync --version ./rsync-ssl --no-motd download.samba.org::rsyncftp/ || true + - name: save artifact + uses: actions/upload-artifact@v3 + with: + name: solaris-bin + path: | + rsync + rsync-ssl + rsync.1 + rsync-ssl.1 + rsyncd.conf.5 + rrsync.1 + rrsync diff --git a/.github/workflows/ubuntu-build.yml b/.github/workflows/ubuntu-build.yml new file mode 100644 index 00000000..60dc8d5f --- /dev/null +++ b/.github/workflows/ubuntu-build.yml @@ -0,0 +1,50 @@ +name: Test rsync on Ubuntu + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + schedule: + - cron: '42 8 * * *' + +jobs: + test: + runs-on: ubuntu-20.04 + name: Test rsync on Ubuntu + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: prep + run: | + sudo apt-get install acl libacl1-dev attr libattr1-dev liblz4-dev libzstd-dev libxxhash-dev python3-cmarkgfm openssl + echo "/usr/local/bin" >>$GITHUB_PATH + - name: configure + run: ./configure --with-rrsync + - name: make + run: make + - name: install + run: sudo make install + - name: info + run: rsync --version + - name: check + run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check + - name: check30 + run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check30 + - name: check29 + run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check29 + - name: ssl file list + run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true + - name: save artifact + uses: actions/upload-artifact@v3 + with: + name: ubuntu-bin + path: | + rsync + rsync-ssl + rsync.1 + rsync-ssl.1 + rsyncd.conf.5 + rrsync.1 + rrsync