Skip to content

Build and Sync latest erlang #5

Build and Sync latest erlang

Build and Sync latest erlang #5

Workflow file for this run

name: Build and Sync latest erlang
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
build-sync:
strategy:
fail-fast: false
matrix:
cfg:
#- { DISTRO_LATEST: "rockylinux_8", PLATFORM: "linux-amd64", RUNNER: "ubuntu-latest"}
- { DISTRO_LATEST: "rockylinux_8", 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 latest ${{ matrix.cfg.DISTRO_LATEST }}"
echo "Platform ${{ matrix.cfg.PLATFORM }}"
echo "${{secrets.GPG_P_KEY}}" | tr ';' '\n' > GPG-KEY-pmanager
make "erlang_${{ env.ERLANG_VERSION }}_${{matrix.cfg.DISTRO_LATEST}}_${{matrix.cfg.PLATFORM}}"
find ./ -type f -name "GPG-KEY*" -delete
- id: upload-to-artifactory
run: |
cd build
curl -L -u${{ secrets.JFROG_USER }}:${{ secrets.JFROG_API_KEY }} -XPUT https://sifi.jfrog.io/artifactory/rpm-local/rockylinux/8/ -T build/rockylinux/8/*