mirror of
https://github.com/jimeh/emacs-builds.git
synced 2026-02-19 08:26:40 +00:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
---
|
|
name: _prepare
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
os:
|
|
description: GitHub Actions runner OS
|
|
type: string
|
|
required: false
|
|
default: "macos-12"
|
|
builder_ref:
|
|
description: Git ref to checkout of build-emacs-for-macos
|
|
required: false
|
|
type: string
|
|
default: "v0.6.50"
|
|
secrets:
|
|
TAP_REPO_TOKEN:
|
|
description: Personal Access Token for Homebrew Tap repo
|
|
required: true
|
|
|
|
jobs:
|
|
emacs-builder:
|
|
runs-on: ${{ inputs.os }}
|
|
steps:
|
|
- name: Checkout build-emacs-for-macos repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: jimeh/build-emacs-for-macos
|
|
ref: ${{ inputs.builder_ref }}
|
|
- name: Store builder Git SHA
|
|
run: |
|
|
git rev-parse HEAD > emacs-builder-git-sha.txt
|
|
- name: Upload builder git SHA artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: emacs-builder-git-sha
|
|
path: emacs-builder-git-sha.txt
|
|
if-no-files-found: error
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23"
|
|
- name: Build emacs-builder tool
|
|
run: make build
|
|
- name: Upload emacs-builder artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: emacs-builder
|
|
path: bin/emacs-builder
|
|
if-no-files-found: error
|