From 0302d1615baabd6ff9a6f25fef3ee01aeba6b33e Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 27 Apr 2022 13:28:57 +0200 Subject: Packages: Rename workflow file to Installers --- .github/workflows/installers.yml | 68 ++++++++++++++++++++++++++++++++++++++++ .github/workflows/packages.yml | 68 ---------------------------------------- 2 files changed, 68 insertions(+), 68 deletions(-) create mode 100644 .github/workflows/installers.yml delete mode 100644 .github/workflows/packages.yml diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml new file mode 100644 index 000000000..52667879f --- /dev/null +++ b/.github/workflows/installers.yml @@ -0,0 +1,68 @@ +name: Publish binary packages + +on: + push: + paths-ignore: + - '.devcontainer/**' + - 'examples/**' + - 'lib/**' + - 'man/**' + - 'priv/**' + - '**.md' + pull_request: + paths-ignore: + - '.devcontainer/**' + - 'examples/**' + - 'lib/**' + - 'man/**' + - 'priv/**' + - '**.md' + +jobs: + binaries: + name: Binaries + runs-on: ubuntu-latest + steps: + - name: Cache build directory + uses: actions/cache@v2 + with: + path: ~/build/ + key: ${{runner.os}}-ct-ng-1.25.0-RC2 + - name: Install prerequisites + run: | + sudo apt-get -qq update + sudo apt-get -qq install makeself + # https://github.com/crosstool-ng/crosstool-ng/blob/master/testing/docker/ubuntu21.10/Dockerfile + sudo apt-get -qq install build-essential autoconf bison flex gawk + sudo apt-get -qq install help2man libncurses5-dev libtool libtool-bin + sudo apt-get -qq install python3-dev texinfo unzip + - name: Install FPM + run: | + gem install --no-document --user-install fpm + echo $HOME/.gem/ruby/*/bin >> $GITHUB_PATH + - name: Check out repository code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Build binary archives + run: CHECK_DEPS=false tools/make-binaries + - name: Build DEB and RPM packages + run: tools/make-packages + - name: Build installers + run: tools/make-installers + - name: Collect packages + run: | + mkdir ejabberd-packages + mv ejabberd_*.deb ejabberd-*.rpm ejabberd-*.run ejabberd-packages + - name: Upload packages + uses: actions/upload-artifact@v3 + with: + name: ejabberd-packages + # + # Appending the wildcard character ("*") is a trick to make + # "ejabberd-packages" the root directory of the uploaded ZIP file: + # + # https://github.com/actions/upload-artifact#upload-using-multiple-paths-and-exclusions + # + path: ejabberd-packages* + retention-days: 14 diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml deleted file mode 100644 index 52667879f..000000000 --- a/.github/workflows/packages.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Publish binary packages - -on: - push: - paths-ignore: - - '.devcontainer/**' - - 'examples/**' - - 'lib/**' - - 'man/**' - - 'priv/**' - - '**.md' - pull_request: - paths-ignore: - - '.devcontainer/**' - - 'examples/**' - - 'lib/**' - - 'man/**' - - 'priv/**' - - '**.md' - -jobs: - binaries: - name: Binaries - runs-on: ubuntu-latest - steps: - - name: Cache build directory - uses: actions/cache@v2 - with: - path: ~/build/ - key: ${{runner.os}}-ct-ng-1.25.0-RC2 - - name: Install prerequisites - run: | - sudo apt-get -qq update - sudo apt-get -qq install makeself - # https://github.com/crosstool-ng/crosstool-ng/blob/master/testing/docker/ubuntu21.10/Dockerfile - sudo apt-get -qq install build-essential autoconf bison flex gawk - sudo apt-get -qq install help2man libncurses5-dev libtool libtool-bin - sudo apt-get -qq install python3-dev texinfo unzip - - name: Install FPM - run: | - gem install --no-document --user-install fpm - echo $HOME/.gem/ruby/*/bin >> $GITHUB_PATH - - name: Check out repository code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Build binary archives - run: CHECK_DEPS=false tools/make-binaries - - name: Build DEB and RPM packages - run: tools/make-packages - - name: Build installers - run: tools/make-installers - - name: Collect packages - run: | - mkdir ejabberd-packages - mv ejabberd_*.deb ejabberd-*.rpm ejabberd-*.run ejabberd-packages - - name: Upload packages - uses: actions/upload-artifact@v3 - with: - name: ejabberd-packages - # - # Appending the wildcard character ("*") is a trick to make - # "ejabberd-packages" the root directory of the uploaded ZIP file: - # - # https://github.com/actions/upload-artifact#upload-using-multiple-paths-and-exclusions - # - path: ejabberd-packages* - retention-days: 14 -- cgit v1.2.3