mirror of
https://github.com/jimeh/emacs-builds.git
synced 2026-02-19 08:26:40 +00:00
This should help reduce costs for Apple Silicon builds, as they are not available on any form of free tier of GitHub Actions at the moment. The build step that actually runs Emacs' configure script, and compiles Emacs, is the only step that actually needs to run on the target hardware architecture. The rest should be architecture agnostic.
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-11"
|
|
builder_ref:
|
|
description: Git ref to checkout of build-emacs-for-macos
|
|
required: false
|
|
type: string
|
|
default: "v0.6.43"
|
|
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@v3
|
|
with:
|
|
name: emacs-builder-git-sha
|
|
path: emacs-builder-git-sha.txt
|
|
if-no-files-found: error
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "1.21"
|
|
- name: Build emacs-builder tool
|
|
run: make build
|
|
- name: Upload emacs-builder artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: emacs-builder
|
|
path: bin/emacs-builder
|
|
if-no-files-found: error
|