Skip to content

Build Test and Publish a Testing Release #45

Build Test and Publish a Testing Release

Build Test and Publish a Testing Release #45

Workflow file for this run

name: Build Test and Publish a Testing Release
on:
workflow_dispatch:
inputs: {}
jobs:
prep:
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.whichver.outputs.branch }}
steps:
- uses: actions/checkout@v4
- name: Determine package version
shell: bash
run: |
echo branch="refs/tags/v5.0b2" >> $GITHUB_OUTPUT
id: whichver
build-macos-x86_64:
runs-on: ['macos-14']
needs: prep
steps:
- uses: actions/checkout@v4
with:
repository: edgedb/edgedb-pkg
ref: master
path: edgedb-pkg
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
if: true
with:
components: "cargo,rustc,rust-std"
toolchain: "stable"
targets: "x86_64-apple-darwin"
- name: Set up Python
uses: actions/setup-python@v5
if: true
with:
python-version: "3.x"
- name: Set up NodeJS
uses: actions/setup-node@v4
if: true
with:
node-version: '20'
- name: Install dependencies
if: true
run: |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install libmagic
- name: Build
env:
SRC_REF: "${{ needs.prep.outputs.branch }}"
BUILD_IS_RELEASE: "true"
PKG_REVISION: "<current-date>"
PKG_SUBDIST: "testing"
PKG_PLATFORM: "macos"
PKG_PLATFORM_VERSION: "x86_64"
PKG_PLATFORM_ARCH: "x86_64"
EXTRA_OPTIMIZATIONS: "true"
METAPKG_GIT_CACHE: disabled
BUILD_GENERIC: true
run: |
edgedb-pkg/integration/macos/build.sh
- uses: actions/upload-artifact@v4
with:
name: builds-macos-x86_64
path: artifacts/macos-x86_64
test-macos-x86_64:
needs: [build-macos-x86_64]
runs-on: ['macos-13']
steps:
- uses: actions/checkout@v4
with:
repository: edgedb/edgedb-pkg
ref: master
path: edgedb-pkg
- uses: actions/download-artifact@v4
with:
name: builds-macos-x86_64
path: artifacts/macos-x86_64
- name: Test
env:
PKG_SUBDIST: "testing"
PKG_PLATFORM: "macos"
PKG_PLATFORM_VERSION: "x86_64"
run: |
edgedb-pkg/integration/macos/test.sh