Skip to content

miracelwhipp is building postgres 🚀 #20

miracelwhipp is building postgres 🚀

miracelwhipp is building postgres 🚀 #20

name: build postgres on multiple platforms
run-name: ${{ github.actor }} is building postgres 🚀
on:
workflow_dispatch:
inputs:
tag:
description: "postgres tag to build in the format REL_<MAJOR>_<MINOR>"
required: true
default: REL_16_2 # DO NOT CHANGE THIS LINE. this default value will be overridden automatically
workflow_call:
inputs:
tag:
description: "postgres tag to build in the format REL_<MAJOR>_<MINOR>"
required: true
type: string
jobs:
build-osx:
runs-on: macos-latest
steps:
- run: echo build event.tag ${{ inputs.tag }}
- name: Check out postgres code
uses: actions/checkout@v4
with:
repository: postgres/postgres
ref: refs/tags/${{ inputs.tag }}
fetch-tags: true
- run: curl https://raw.githubusercontent.com/eitco/build-postgres/${{ github.ref_name }}/build.sh > build.sh && chmod +x build.sh
- run: ./build.sh "${{ inputs.tag }}" osx
- uses: ncipollo/release-action@v1.14.0
with:
name: "postgres-${{ inputs.tag }}-osx"
body: "postgres ${{ inputs.tag }} osx"
artifacts: "postgres-*-osx.tar.gz,COPYRIGHT"
tag: ${{ inputs.tag }}-osx
commit: ${{ github.ref_name }}
build-linux-64:
runs-on: ubuntu-latest
steps:
- run: echo build event.tag ${{ inputs.tag }}
- name: Check out postgres code
uses: actions/checkout@v4
with:
repository: postgres/postgres
ref: refs/tags/${{ inputs.tag }}
fetch-tags: true
- run: curl https://raw.githubusercontent.com/eitco/build-postgres/${{ github.ref_name }}/build.sh > build.sh && chmod +x build.sh
- run: ./build.sh "${{ inputs.tag }}" linux-64
- uses: ncipollo/release-action@v1.14.0
with:
name: "postgres-${{ inputs.tag }}-linux-64"
body: "postgres ${{ inputs.tag }} linux-64"
artifacts: "postgres-*-linux-64.tar.gz,COPYRIGHT"
tag: ${{ inputs.tag }}-linux-64
commit: ${{ github.ref_name }}