|
7 | 7 | pull_request: |
8 | 8 |
|
9 | 9 | env: |
10 | | - CMAKE_VERSION: '3.17.3' |
| 10 | + CMAKE_VERSION: '3.19.2' |
11 | 11 | ARROW_VERSION: '1.0.1' |
12 | 12 |
|
13 | 13 | jobs: |
| 14 | + archive: |
| 15 | + name: Linux |
| 16 | + runs-on: ubuntu-latest |
| 17 | + container: centos:7 |
| 18 | + strategy: |
| 19 | + matrix: |
| 20 | + source: |
| 21 | + - runtime/cpp |
| 22 | + - codegen/cpp/fletchgen |
| 23 | + steps: |
| 24 | + - name: Install dependencies |
| 25 | + run: | |
| 26 | + yum install -y epel-release centos-release-scl https://repo.ius.io/ius-release-el7.rpm |
| 27 | + yum install -y curl make devtoolset-7-gcc-c++ rpm-build git224 |
| 28 | + echo "/opt/rh/devtoolset-7/root/bin/" >> $GITHUB_PATH |
| 29 | + - name: Install CMake |
| 30 | + run: curl -L https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz | tar xz --strip-components=1 -C /usr |
| 31 | + - name: Install Apache Arrow |
| 32 | + run: | |
| 33 | + yum install -y https://apache.bintray.com/arrow/centos/$(cut -d: -f5 /etc/system-release-cpe)/apache-arrow-release-latest.rpm |
| 34 | + yum install -y arrow-devel-$ARROW_VERSION-1.el7 |
| 35 | + - uses: actions/checkout@v2 |
| 36 | + with: |
| 37 | + submodules: true |
| 38 | + - name: Configure |
| 39 | + run: cmake ${{ matrix.source }} -DCMAKE_BUILD_TYPE=Release |
| 40 | + - name: Package |
| 41 | + run: make -j package |
| 42 | + - id: tarball |
| 43 | + run: echo "##[set-output name=name;]$(ls fletch*.tar.gz)" |
| 44 | + - name: Install |
| 45 | + run: tar xvfz ./${{ steps.tarball.outputs.name }} -C /usr |
| 46 | + - name: Upload tarball |
| 47 | + uses: actions/upload-release-asset@v1 |
| 48 | + if: ${{ github.event_name == 'release' && github.event.action == 'created' }} |
| 49 | + env: |
| 50 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 51 | + with: |
| 52 | + upload_url: ${{ github.event.release.upload_url }} |
| 53 | + asset_path: ${{ steps.tarball.outputs.name }} |
| 54 | + asset_name: ${{ steps.tarball.outputs.name }} |
| 55 | + asset_content_type: application/octet-stream |
| 56 | + |
| 57 | + centos: |
| 58 | + name: CentOS |
| 59 | + runs-on: ubuntu-latest |
| 60 | + strategy: |
| 61 | + matrix: |
| 62 | + version: |
| 63 | + - 7 |
| 64 | + - 8 |
| 65 | + source: |
| 66 | + - runtime/cpp |
| 67 | + - codegen/cpp/fletchgen |
| 68 | + container: centos:${{ matrix.version }} |
| 69 | + steps: |
| 70 | + - name: Install dependencies |
| 71 | + run: | |
| 72 | + yum install -y epel-release |
| 73 | + yum install -y curl make rpm-build |
| 74 | + - name: Install CMake |
| 75 | + run: curl -L https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz | tar xz --strip-components=1 -C /usr |
| 76 | + - name: Install Apache Arrow |
| 77 | + if: ${{ matrix.version == '7' }} |
| 78 | + run: | |
| 79 | + yum install -y https://repo.ius.io/ius-release-el7.rpm centos-release-scl |
| 80 | + yum install -y git224 devtoolset-7-gcc-c++ |
| 81 | + echo "/opt/rh/devtoolset-7/root/bin/" >> $GITHUB_PATH |
| 82 | + yum install -y https://apache.bintray.com/arrow/centos/$(cut -d: -f5 /etc/system-release-cpe)/apache-arrow-release-latest.rpm |
| 83 | + yum install -y arrow-devel-$ARROW_VERSION-1.el${{ matrix.version }} |
| 84 | + - name: Install Apache Arrow |
| 85 | + if: ${{ matrix.version == '8' }} |
| 86 | + run: | |
| 87 | + dnf install -y git gcc-c++ |
| 88 | + dnf install -y https://apache.bintray.com/arrow/centos/$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)/apache-arrow-release-latest.rpm |
| 89 | + dnf config-manager --set-enabled epel || : |
| 90 | + dnf config-manager --set-enabled powertools || : |
| 91 | + dnf config-manager --set-enabled codeready-builder-for-rhel-$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)-rhui-rpms || : |
| 92 | + subscription-manager repos --enable codeready-builder-for-rhel-$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)-$(arch)-rpms || : |
| 93 | + dnf install -y arrow-devel-$ARROW_VERSION-1.el${{ matrix.version }} |
| 94 | + - uses: actions/checkout@v2 |
| 95 | + with: |
| 96 | + submodules: true |
| 97 | + - name: Configure |
| 98 | + run: cmake ${{ matrix.source }} -DCMAKE_BUILD_TYPE=Release |
| 99 | + - name: Package |
| 100 | + run: make -j package |
| 101 | + - id: rpm |
| 102 | + run: echo "##[set-output name=name;]$(ls fletch*.rpm)" |
| 103 | + - name: Install |
| 104 | + run: | |
| 105 | + yum remove -y arrow-devel |
| 106 | + yum autoremove -y |
| 107 | + yum localinstall -y ./${{ steps.rpm.outputs.name }} |
| 108 | + - name: Upload rpm |
| 109 | + uses: actions/upload-release-asset@v1 |
| 110 | + if: ${{ github.event_name == 'release' && github.event.action == 'created' }} |
| 111 | + env: |
| 112 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 113 | + with: |
| 114 | + upload_url: ${{ github.event.release.upload_url }} |
| 115 | + asset_path: ${{ steps.rpm.outputs.name }} |
| 116 | + asset_name: ${{ steps.rpm.outputs.name }} |
| 117 | + asset_content_type: application/octet-stream |
| 118 | + |
| 119 | + ubuntu: |
| 120 | + name: Ubuntu |
| 121 | + strategy: |
| 122 | + matrix: |
| 123 | + version: |
| 124 | + - 18.04 |
| 125 | + - 20.04 |
| 126 | + source: |
| 127 | + - runtime/cpp |
| 128 | + - codegen/cpp/fletchgen |
| 129 | + runs-on: ubuntu-${{ matrix.version }} |
| 130 | + steps: |
| 131 | + - uses: actions/checkout@v2 |
| 132 | + with: |
| 133 | + submodules: true |
| 134 | + - name: Install Apache Arrow |
| 135 | + run: | |
| 136 | + wget https://apache.bintray.com/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-archive-keyring-latest-$(lsb_release --codename --short).deb |
| 137 | + sudo apt-get install -y ./apache-arrow-archive-keyring-latest-$(lsb_release --codename --short).deb |
| 138 | + sudo apt-get update |
| 139 | + sudo apt-get install -y libarrow-dev=$ARROW_VERSION-1 |
| 140 | + - name: Configure |
| 141 | + run: cmake ${{ matrix.source }} -DCMAKE_BUILD_TYPE=Release |
| 142 | + - name: Package |
| 143 | + run: make -j package |
| 144 | + - id: deb |
| 145 | + run: echo "##[set-output name=name;]$(ls fletch*.deb)" |
| 146 | + - name: Install |
| 147 | + run: | |
| 148 | + sudo apt-get --purge autoremove libarrow-dev |
| 149 | + sudo apt-get install -y ./${{ steps.deb.outputs.name }} libarrow-dev=${ARROW_VERSION}-1 |
| 150 | + - name: Upload deb |
| 151 | + uses: actions/upload-release-asset@v1 |
| 152 | + if: ${{ github.event_name == 'release' && github.event.action == 'created' }} |
| 153 | + env: |
| 154 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 155 | + with: |
| 156 | + upload_url: ${{ github.event.release.upload_url }} |
| 157 | + asset_path: ${{ steps.deb.outputs.name }} |
| 158 | + asset_name: ${{ steps.deb.outputs.name }} |
| 159 | + asset_content_type: application/octet-stream |
| 160 | + |
14 | 161 | python: |
15 | 162 | name: Python |
16 | 163 | runs-on: ubuntu-latest |
|
0 commit comments