miracelwhipp is building postgres 🚀 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build postgres osx | |
run-name: ${{ github.actor }} is building postgres 🚀 | |
on: | |
- push | |
- workflow_dispatch | |
jobs: | |
build-osx: | |
runs-on: macos-latest | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out postgres code | |
uses: actions/checkout@v4 | |
with: | |
repository: postgres/postgres | |
ref: refs/tags/REL_16_2 | |
fetch-tags: true | |
- run: echo "💡 The postgres repository has been cloned to the runner." | |
- run: echo "🖥️ The workflow is now ready to test your code on the runner." | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- run: ls -al pgsql/bin || echo "pgsql/bin does not exist" | |
- run: echo "🍏 This job's status is ${{ job.status }}." | |
- run: curl https://raw.githubusercontent.com/eitco/build-postgres/${{ github.ref_name }}/build.sh > build.sh && chmod +x build.sh | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- run: ./build.sh | |
- run: ls -al pgsql/bin || echo "pgsql/bin does not exist" |