|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 3 | +# or more contributor license agreements. See the NOTICE file |
| 4 | +# distributed with this work for additional information |
| 5 | +# regarding copyright ownership. The ASF licenses this file |
| 6 | +# to you under the Apache License, Version 2.0 (the |
| 7 | +# "License"); you may not use this file except in compliance |
| 8 | +# with the License. You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, |
| 13 | +# software distributed under the License is distributed on an |
| 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | +# KIND, either express or implied. See the License for the |
| 16 | +# specific language governing permissions and limitations |
| 17 | +# under the License. |
| 18 | +# |
| 19 | + |
| 20 | +name: CI - Build binary artifacts |
| 21 | +on: |
| 22 | + push: |
| 23 | + branches: |
| 24 | + - '*' |
| 25 | + tags: |
| 26 | + - '*' |
| 27 | + |
| 28 | +concurrency: |
| 29 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 30 | + cancel-in-progress: true |
| 31 | + |
| 32 | +jobs: |
| 33 | + |
| 34 | + deb-packaging-x86_64: |
| 35 | + name: Build Debian Package - x86_64 |
| 36 | + runs-on: ubuntu-20.04 |
| 37 | + timeout-minutes: 120 |
| 38 | + |
| 39 | + steps: |
| 40 | + - name: checkout |
| 41 | + uses: actions/checkout@v2 |
| 42 | + |
| 43 | + - name: Package Pulsar source |
| 44 | + run: build-support/generate-source-archive.sh |
| 45 | + |
| 46 | + - name: Build Debian packages |
| 47 | + run: pkg/deb/docker-build-deb-x86_64.sh |
| 48 | + |
| 49 | + - name: Upload artifacts |
| 50 | + uses: actions/upload-artifact@v3 |
| 51 | + with: |
| 52 | + name: deb-x86_64 |
| 53 | + path: pkg/deb/BUILD/DEB |
| 54 | + |
| 55 | + deb-packaging-arm64: |
| 56 | + name: Build Debian Package - Arm64 |
| 57 | + runs-on: ubuntu-20.04 |
| 58 | + timeout-minutes: 120 |
| 59 | + |
| 60 | + steps: |
| 61 | + - name: checkout |
| 62 | + uses: actions/checkout@v2 |
| 63 | + |
| 64 | + - name: Set up QEMU |
| 65 | + uses: docker/setup-qemu-action@v1 |
| 66 | + |
| 67 | + - name: Package Pulsar source |
| 68 | + run: build-support/generate-source-archive.sh |
| 69 | + |
| 70 | + - name: Build Debian packages |
| 71 | + run: pkg/deb/docker-build-deb-arm64.sh |
| 72 | + |
| 73 | + - name: Upload artifacts |
| 74 | + uses: actions/upload-artifact@v3 |
| 75 | + with: |
| 76 | + name: deb-arm64 |
| 77 | + path: pkg/deb/BUILD/DEB |
| 78 | + |
| 79 | + rpm-packaging-x86_64: |
| 80 | + name: Build RPM Package - x86_64 |
| 81 | + runs-on: ubuntu-20.04 |
| 82 | + timeout-minutes: 120 |
| 83 | + |
| 84 | + steps: |
| 85 | + - name: checkout |
| 86 | + uses: actions/checkout@v2 |
| 87 | + |
| 88 | + - name: Package Pulsar source |
| 89 | + run: build-support/generate-source-archive.sh |
| 90 | + |
| 91 | + - name: Build RPM packages |
| 92 | + run: pkg/rpm/docker-build-rpm-x86_64.sh |
| 93 | + |
| 94 | + - name: Upload artifacts |
| 95 | + uses: actions/upload-artifact@v3 |
| 96 | + with: |
| 97 | + name: rpm-x86_64 |
| 98 | + path: pkg/rpm/RPMS |
| 99 | + |
| 100 | + rpm-packaging-arm64: |
| 101 | + name: Build RPM Package - arm64 |
| 102 | + runs-on: ubuntu-20.04 |
| 103 | + timeout-minutes: 120 |
| 104 | + |
| 105 | + steps: |
| 106 | + - name: checkout |
| 107 | + uses: actions/checkout@v2 |
| 108 | + |
| 109 | + - name: Set up QEMU |
| 110 | + uses: docker/setup-qemu-action@v1 |
| 111 | + |
| 112 | + - name: Package Pulsar source |
| 113 | + run: build-support/generate-source-archive.sh |
| 114 | + |
| 115 | + - name: Build RPM packages |
| 116 | + run: pkg/rpm/docker-build-rpm-arm64.sh |
| 117 | + |
| 118 | + - name: Upload artifacts |
| 119 | + uses: actions/upload-artifact@v3 |
| 120 | + with: |
| 121 | + name: rpm-arm64 |
| 122 | + path: pkg/rpm/RPMS |
0 commit comments