Skip to content

Simplifi Specific Erlang Builds #5

Simplifi Specific Erlang Builds

Simplifi Specific Erlang Builds #5

Workflow file for this run

name: Simplifi Specific Erlang Builds
on:
workflow_dispatch:
jobs:
build-sync:
strategy:
fail-fast: false
matrix:
cfg:
- { DISTRO: "rockylinux", OS_VERSION: "8", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "27.1.2"}
- { DISTRO: "rockylinux", OS_VERSION: "8", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "26.1.2"}
- { DISTRO: "rockylinux", OS_VERSION: "8", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "25.3.2"}
- { DISTRO: "rockylinux", OS_VERSION: "8", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "24.3.4"}
- { DISTRO: "centos", OS_VERSION: "7", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "26.1.2"}
- { DISTRO: "centos", OS_VERSION: "7", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "25.3.2"}
- { DISTRO: "centos", OS_VERSION: "7", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "24.3.4"}
runs-on: ${{ matrix.cfg.RUNNER }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Build the package
env:
ERLANG_VERSION: ${{ matrix.cfg.ERLANG_VERSION }}
GPG_PASS: ${{ secrets.GPG_PASS }}
run: |
echo "Building ..."
echo "Distro ${{ matrix.cfg.DISTRO }} ${{ matrix.cfg.OS_VERSION }}"
echo "Platform ${{ matrix.cfg.PLATFORM }}"
echo "${{secrets.GPG_P_KEY}}" | tr ';' '\n' > GPG-KEY-pmanager
make "erlang_${{ env.ERLANG_VERSION }}_${{matrix.cfg.DISTRO}}_${{matrix.cfg.OS_VERSION}}_${{matrix.cfg.PLATFORM}}"
find ./ -type f -name "GPG-KEY*" -delete
- id: upload-to-artifactory
run: |
curl -L -u${{ secrets.JFROG_USER }}:${{ secrets.JFROG_API_KEY }} -XPUT https://sifi.jfrog.io/artifactory/rpm-local/${{ matrix.cfg.DISTRO }}/${{ matrix.cfg.OS_VERSION }}/ -T build/${{ matrix.cfg.DISTRO }}/${{ matrix.cfg.OS_VERSION }}/*