mirror of
https://github.com/jimeh/emacs-builds.git
synced 2026-02-19 10:46:40 +00:00
Compare commits
36 Commits
Emacs.2023
...
Emacs.2024
| Author | SHA1 | Date | |
|---|---|---|---|
|
692c58ea35
|
|||
|
ec8c83bd4b
|
|||
|
3967c4ecc8
|
|||
|
307f13be0b
|
|||
|
92533f2b50
|
|||
|
17e0cb55ac
|
|||
|
6acaf3f2cb
|
|||
|
c262274a3d
|
|||
|
ca7f04ce6a
|
|||
|
202f62454e
|
|||
|
99341c4f19
|
|||
|
b841bc77b9
|
|||
|
196270a3f4
|
|||
|
2062378299
|
|||
|
cc7bb92357
|
|||
|
1a36bde31e
|
|||
|
04d1bbeb71
|
|||
|
3e4d8b1833
|
|||
|
a292b242c4
|
|||
|
287df6914e
|
|||
|
d2cb4d5905
|
|||
|
6b4bd441a3
|
|||
|
6e1af1b83f
|
|||
|
81b0e4a784
|
|||
|
503023cd53
|
|||
|
a79110c550
|
|||
|
ff1b573f43
|
|||
| e65fc8f4f0 | |||
|
f1bd559949
|
|||
|
d169338d88
|
|||
|
d9d8975d98
|
|||
|
f9ee76857f
|
|||
|
c18f19b60b
|
|||
|
dc1fdc91fc
|
|||
|
54e3c95ade
|
|||
|
f73a9c6c03
|
75
.github/workflows/_build.yml
vendored
75
.github/workflows/_build.yml
vendored
@@ -11,7 +11,13 @@ on:
|
||||
os:
|
||||
description: GitHub Actions runner OS
|
||||
type: string
|
||||
required: true
|
||||
required: false
|
||||
default: "macos-12"
|
||||
build_os:
|
||||
description: Target OS to build for
|
||||
type: string
|
||||
required: false
|
||||
default: "macos-12"
|
||||
git_ref:
|
||||
description: Git ref to build
|
||||
type: string
|
||||
@@ -58,6 +64,10 @@ on:
|
||||
TAP_REPO_TOKEN:
|
||||
description: Homebrew Tap Token
|
||||
required: true
|
||||
outputs:
|
||||
package_created:
|
||||
description: "Whether or not a package was created"
|
||||
value: ${{ jobs.package.result == 'success' }}
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
@@ -68,7 +78,7 @@ jobs:
|
||||
test_plan_args: ${{ steps.test_plan_args.outputs.args }}
|
||||
steps:
|
||||
- name: Download emacs-builder git SHA artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: emacs-builder-git-sha
|
||||
path: ./
|
||||
@@ -88,16 +98,31 @@ jobs:
|
||||
echo "sha=--sha '${{ inputs.git_sha }}'" >> $GITHUB_OUTPUT
|
||||
plan:
|
||||
needs: [prepare]
|
||||
runs-on: ${{ inputs.os }}
|
||||
runs-on: ${{ inputs.build_os }}
|
||||
outputs:
|
||||
check: ${{ steps.check.outputs.result }}
|
||||
steps:
|
||||
- name: Checkout build-emacs-for-macos repo
|
||||
if: ${{ inputs.os != inputs.build_os }}
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: jimeh/build-emacs-for-macos
|
||||
ref: ${{ needs.prepare.outputs.builder_sha }}
|
||||
- uses: actions/setup-go@v5
|
||||
if: ${{ inputs.os != inputs.build_os }}
|
||||
with:
|
||||
go-version: "1.21"
|
||||
- name: Build emacs-builder tool
|
||||
if: ${{ inputs.os != inputs.build_os }}
|
||||
run: make build
|
||||
- name: Download pre-built emacs-builder artifact
|
||||
uses: actions/download-artifact@v3
|
||||
if: ${{ inputs.os == inputs.build_os }}
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: emacs-builder
|
||||
path: bin
|
||||
- name: Ensure emacs-builder is executable
|
||||
if: ${{ inputs.os == inputs.build_os }}
|
||||
run: chmod +x bin/emacs-builder
|
||||
- name: Plan build
|
||||
run: >-
|
||||
@@ -111,7 +136,7 @@ jobs:
|
||||
- name: Show plan
|
||||
run: cat build-plan.yml
|
||||
- name: Upload build-plan artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact_prefix }}build-plan
|
||||
path: build-plan.yml
|
||||
@@ -124,53 +149,58 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: echo 'Planned release already seems to exist.'
|
||||
if: ${{ steps.check.outputs.result == 'fail' }}
|
||||
if: ${{ steps.check.outputs.result == 'ok' }}
|
||||
|
||||
build:
|
||||
runs-on: ${{ inputs.os }}
|
||||
runs-on: ${{ inputs.build_os }}
|
||||
needs: [prepare, plan]
|
||||
# Only run if check for existing release and asset failed.
|
||||
if: ${{ needs.plan.outputs.check == 'fail' }}
|
||||
steps:
|
||||
- name: Checkout build-emacs-for-macos repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: jimeh/build-emacs-for-macos
|
||||
ref: ${{ needs.prepare.outputs.builder_sha }}
|
||||
path: builder
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.7
|
||||
ruby-version: "3.2"
|
||||
- name: Update homebrew
|
||||
run: brew update
|
||||
- name: Fix system python breaking homebrew
|
||||
run: >-
|
||||
find /usr/local/bin -type l
|
||||
find "$(brew --prefix)/bin" -type l
|
||||
-ilname '*/Library/Frameworks/Python.framework/*'
|
||||
-delete
|
||||
- name: Install dependencies
|
||||
run: make bootstrap-ci
|
||||
run: make bootstrap
|
||||
working-directory: builder
|
||||
env:
|
||||
BUNDLE_WITHOUT: "development"
|
||||
- name: Download build-plan artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact_prefix }}build-plan
|
||||
path: ./
|
||||
- name: Build Emacs
|
||||
run: >-
|
||||
./builder/build-emacs-for-macos --plan build-plan.yml
|
||||
./builder/build-emacs-for-macos
|
||||
--log-level debug
|
||||
--plan build-plan.yml
|
||||
--native-full-aot
|
||||
--no-self-sign
|
||||
${{ inputs.build_args }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Upload unsigned app artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact_prefix }}unsigned-app
|
||||
path: builds/*.tbz
|
||||
if-no-files-found: error
|
||||
- name: Upload Emacs source artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact_prefix }}emacs-source
|
||||
path: builder/tarballs/*.tgz
|
||||
@@ -178,28 +208,27 @@ jobs:
|
||||
package:
|
||||
runs-on: ${{ inputs.os }}
|
||||
needs: [prepare, plan, build]
|
||||
# Only run if check for existing release and asset failed.
|
||||
steps:
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- name: Install dmgbuild
|
||||
run: |
|
||||
$(command -v pip3 || command -v pip) install --upgrade dmgbuild
|
||||
- name: Download pre-built emacs-builder artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: emacs-builder
|
||||
path: bin
|
||||
- name: Ensure emacs-builder is executable
|
||||
run: chmod +x bin/emacs-builder
|
||||
- name: Download build-plan artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact_prefix }}build-plan
|
||||
path: ./
|
||||
- name: Download unsigned app artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact_prefix }}unsigned-app
|
||||
path: builds
|
||||
@@ -231,7 +260,7 @@ jobs:
|
||||
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
||||
- name: Sign, package and notarize build
|
||||
run: >-
|
||||
bin/emacs-builder -l debug package -v --plan build-plan.yml
|
||||
bin/emacs-builder package -v --plan build-plan.yml
|
||||
--sign --remove-source-dir
|
||||
env:
|
||||
AC_USERNAME: ${{ secrets.AC_USERNAME }}
|
||||
@@ -239,9 +268,9 @@ jobs:
|
||||
AC_PROVIDER: ${{ secrets.AC_PROVIDER }}
|
||||
AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }}
|
||||
- name: Upload disk image artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dmg
|
||||
name: ${{ inputs.artifact_prefix }}dmg
|
||||
path: |
|
||||
builds/*.dmg
|
||||
builds/*.sha*
|
||||
|
||||
33
.github/workflows/_prepare.yml
vendored
33
.github/workflows/_prepare.yml
vendored
@@ -3,11 +3,16 @@ 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.41"
|
||||
default: "v0.6.48"
|
||||
secrets:
|
||||
TAP_REPO_TOKEN:
|
||||
description: Personal Access Token for Homebrew Tap repo
|
||||
@@ -15,40 +20,30 @@ on:
|
||||
|
||||
jobs:
|
||||
emacs-builder:
|
||||
# Use oldest version of macOS to ensure emacs-bulder binary is compatible
|
||||
# with later versions of macOS.
|
||||
runs-on: macos-11
|
||||
runs-on: ${{ inputs.os }}
|
||||
steps:
|
||||
- name: Checkout build-emacs-for-macos repo
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: jimeh/build-emacs-for-macos
|
||||
ref: ${{ inputs.builder_ref }}
|
||||
path: builder
|
||||
- name: Store builder Git SHA
|
||||
run: |
|
||||
git rev-parse HEAD > emacs-builder-git-sha.txt
|
||||
working-directory: builder
|
||||
- name: Upload builder git SHA artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: emacs-builder-git-sha
|
||||
path: builder/emacs-builder-git-sha.txt
|
||||
path: emacs-builder-git-sha.txt
|
||||
if-no-files-found: error
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.16
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('builder/**/go.sum') }}
|
||||
restore-keys: ${{ runner.os }}-go-
|
||||
go-version: "1.21"
|
||||
- name: Build emacs-builder tool
|
||||
run: make build
|
||||
working-directory: builder
|
||||
- name: Upload emacs-builder artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: emacs-builder
|
||||
path: builder/bin/emacs-builder
|
||||
path: bin/emacs-builder
|
||||
if-no-files-found: error
|
||||
|
||||
27
.github/workflows/_release.yml
vendored
27
.github/workflows/_release.yml
vendored
@@ -4,6 +4,11 @@ name: _release
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
os:
|
||||
description: GitHub Actions runner OS
|
||||
type: string
|
||||
required: false
|
||||
default: "macos-12"
|
||||
plan_artifact:
|
||||
description: Name of artifact containing a emacs-builder plan yaml file
|
||||
type: string
|
||||
@@ -12,6 +17,15 @@ on:
|
||||
description: Name of artifact containing a *.dmg files to release
|
||||
type: string
|
||||
required: true
|
||||
test_build_name:
|
||||
description: "Test build name"
|
||||
type: string
|
||||
required: false
|
||||
update_casks:
|
||||
description: "Update casks in homebrew tap?"
|
||||
type: boolean
|
||||
required: true
|
||||
default: true
|
||||
secrets:
|
||||
TAP_REPO_TOKEN:
|
||||
description: Personal Access Token for Homebrew Tap repo
|
||||
@@ -19,24 +33,24 @@ on:
|
||||
|
||||
jobs:
|
||||
github:
|
||||
runs-on: macos-11
|
||||
runs-on: ${{ inputs.os }}
|
||||
steps:
|
||||
- name: Download pre-built emacs-builder artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: emacs-builder
|
||||
path: bin
|
||||
- name: Ensure emacs-builder is executable
|
||||
run: chmod +x bin/emacs-builder
|
||||
- name: Download build-plan.yml artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.plan_artifact }}
|
||||
path: ./
|
||||
- name: Download disk image artifacts
|
||||
id: dmg
|
||||
continue-on-error: true
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.dmg_artifact }}
|
||||
path: builds
|
||||
@@ -48,7 +62,10 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Trigger update casks workflow in homebrew tap
|
||||
if: ${{ steps.dmg.outputs.result != 'fail' && inputs.testBuildName == '' }}
|
||||
if: >-
|
||||
steps.dmg.outputs.result != 'fail' &&
|
||||
inputs.test_build_name == '' &&
|
||||
inputs.update_casks
|
||||
run: >-
|
||||
gh workflow run --repo jimeh/homebrew-emacs-builds update-casks.yml
|
||||
env:
|
||||
|
||||
86
.github/workflows/build.yml
vendored
86
.github/workflows/build.yml
vendored
@@ -13,15 +13,15 @@ on:
|
||||
builder_ref:
|
||||
description: "Git ref to checkout of build-emacs-for-macos"
|
||||
required: true
|
||||
default: "master"
|
||||
default: "v0.6.48"
|
||||
builder_args:
|
||||
description: Custom arguments passed to build script
|
||||
required: false
|
||||
default: ""
|
||||
os:
|
||||
description: 'Runner OS ("macos-11", "macos-12", or "macos-latest")'
|
||||
description: 'Runner OS ("macos-12", "macos-13", or "macos-latest")'
|
||||
required: true
|
||||
default: "macos-11"
|
||||
default: "macos-12"
|
||||
test_build_name:
|
||||
description: "Test build name"
|
||||
required: false
|
||||
@@ -30,22 +30,40 @@ on:
|
||||
description: "prerelease or draft"
|
||||
required: false
|
||||
default: ""
|
||||
x86_64:
|
||||
description: "Build x86_64 version of Emacs"
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
arm64:
|
||||
description: "Build arm64 version of Emacs"
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
name: Prepare
|
||||
uses: ./.github/workflows/_prepare.yml
|
||||
with:
|
||||
os: ${{ github.event.inputs.os }}
|
||||
builder_ref: ${{ github.event.inputs.builder_ref }}
|
||||
secrets:
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
build:
|
||||
name: Build
|
||||
needs: [prepare]
|
||||
# ----------------------------------------------------------------------------
|
||||
# Build x86_64 version of Emacs
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
build_x86_64:
|
||||
name: Build (x86_64)
|
||||
if: ${{ github.event.inputs.x86_64 == 'true' }}
|
||||
uses: ./.github/workflows/_build.yml
|
||||
needs: [prepare]
|
||||
with:
|
||||
os: ${{ github.event.inputs.os }}
|
||||
build_os: "macos-12"
|
||||
artifact_prefix: "x86_64-"
|
||||
git_ref: ${{ github.event.inputs.git_ref }}
|
||||
git_sha: ${{ github.event.inputs.git_sha }}
|
||||
build_args: ${{ github.event.inputs.builder_args }}
|
||||
@@ -61,12 +79,58 @@ jobs:
|
||||
AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }}
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
release:
|
||||
name: Release
|
||||
needs: [build]
|
||||
release_x86_64:
|
||||
name: Release (x86_64)
|
||||
uses: ./.github/workflows/_release.yml
|
||||
needs: [build_x86_64]
|
||||
if: ${{ needs.build_x86_64.outputs.package_created }}
|
||||
with:
|
||||
plan_artifact: build-plan
|
||||
dmg_artifact: dmg
|
||||
os: ${{ github.event.inputs.os }}
|
||||
plan_artifact: x86_64-build-plan
|
||||
dmg_artifact: x86_64-dmg
|
||||
test_build_name: ${{ github.event.inputs.test_build_name }}
|
||||
update_casks: true
|
||||
secrets:
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Build arm64 version of Emacs
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
build_arm64:
|
||||
name: Build (arm64)
|
||||
if: ${{ github.event.inputs.arm64 == 'true' }}
|
||||
uses: ./.github/workflows/_build.yml
|
||||
needs: [prepare]
|
||||
with:
|
||||
os: ${{ github.event.inputs.os }}
|
||||
build_os: "macos-13-xlarge" # Only macos-13-xlarge has arm64 support.
|
||||
artifact_prefix: "arm64-"
|
||||
git_ref: ${{ github.event.inputs.git_ref }}
|
||||
git_sha: ${{ github.event.inputs.git_sha }}
|
||||
build_args: ${{ github.event.inputs.builder_args }}
|
||||
test_build_name: ${{ github.event.inputs.test_build_name }}
|
||||
test_release_type: ${{ github.event.inputs.test_release_type }}
|
||||
secrets:
|
||||
APPLE_DEVELOPER_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
|
||||
APPLE_DEVELOPER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
|
||||
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
||||
AC_USERNAME: ${{ secrets.AC_USERNAME }}
|
||||
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
|
||||
AC_PROVIDER: ${{ secrets.AC_PROVIDER }}
|
||||
AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }}
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
release_arm64:
|
||||
name: Release (arm64)
|
||||
uses: ./.github/workflows/_release.yml
|
||||
needs: [build_arm64]
|
||||
if: ${{ needs.build_arm64.outputs.package_created }}
|
||||
with:
|
||||
os: ${{ github.event.inputs.os }}
|
||||
plan_artifact: arm64-build-plan
|
||||
dmg_artifact: arm64-dmg
|
||||
test_build_name: ${{ github.event.inputs.test_build_name }}
|
||||
update_casks: false
|
||||
secrets:
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
46
.github/workflows/nightly-emacs-29.yml
vendored
46
.github/workflows/nightly-emacs-29.yml
vendored
@@ -1,46 +0,0 @@
|
||||
---
|
||||
name: Nightly (emacs-29)
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 23 * * *"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
git_sha:
|
||||
description: Override Emacs git commit SHA to build
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
name: Prepare
|
||||
uses: ./.github/workflows/_prepare.yml
|
||||
secrets:
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
build:
|
||||
name: Build
|
||||
needs: [prepare]
|
||||
uses: ./.github/workflows/_build.yml
|
||||
with:
|
||||
os: macos-11
|
||||
git_ref: emacs-29
|
||||
git_sha: ${{ github.event.inputs.git_sha }}
|
||||
build_args: --native-comp
|
||||
secrets:
|
||||
APPLE_DEVELOPER_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
|
||||
APPLE_DEVELOPER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
|
||||
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
||||
AC_USERNAME: ${{ secrets.AC_USERNAME }}
|
||||
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
|
||||
AC_PROVIDER: ${{ secrets.AC_PROVIDER }}
|
||||
AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }}
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
release:
|
||||
name: Release
|
||||
needs: [build]
|
||||
uses: ./.github/workflows/_release.yml
|
||||
with:
|
||||
plan_artifact: build-plan
|
||||
dmg_artifact: dmg
|
||||
secrets:
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
74
.github/workflows/nightly-master.yml
vendored
74
.github/workflows/nightly-master.yml
vendored
@@ -2,12 +2,18 @@
|
||||
name: Nightly (master)
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 23 * * *"
|
||||
- cron: "0 23 1 * *"
|
||||
- cron: "0 23 2-31 * *"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
git_sha:
|
||||
description: Override Emacs git commit SHA to build
|
||||
required: false
|
||||
arm64:
|
||||
description: "Build arm64 version of Emacs?"
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
@@ -16,15 +22,19 @@ jobs:
|
||||
secrets:
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
build:
|
||||
name: Build
|
||||
needs: [prepare]
|
||||
# ----------------------------------------------------------------------------
|
||||
# Build x86_64 version of Emacs
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
build_x86_64:
|
||||
name: Build (x86_64)
|
||||
uses: ./.github/workflows/_build.yml
|
||||
needs: [prepare]
|
||||
with:
|
||||
os: macos-11
|
||||
git_ref: master
|
||||
build_os: "macos-12"
|
||||
artifact_prefix: "x86_64-"
|
||||
git_ref: "master"
|
||||
git_sha: ${{ github.event.inputs.git_sha }}
|
||||
build_args: --native-comp
|
||||
secrets:
|
||||
APPLE_DEVELOPER_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
|
||||
APPLE_DEVELOPER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
|
||||
@@ -35,12 +45,52 @@ jobs:
|
||||
AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }}
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
release:
|
||||
name: Release
|
||||
needs: [build]
|
||||
release_x86_64:
|
||||
name: Release (x86_64)
|
||||
uses: ./.github/workflows/_release.yml
|
||||
needs: [build_x86_64]
|
||||
if: ${{ needs.build_x86_64.outputs.package_created }}
|
||||
with:
|
||||
plan_artifact: build-plan
|
||||
dmg_artifact: dmg
|
||||
plan_artifact: x86_64-build-plan
|
||||
dmg_artifact: x86_64-dmg
|
||||
update_casks: true
|
||||
secrets:
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Build arm64 version of Emacs
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
build_arm64:
|
||||
name: Build (arm64)
|
||||
if: >-
|
||||
github.event.inputs.arm64 == 'true' ||
|
||||
github.event.schedule == '0 23 1 * *'
|
||||
uses: ./.github/workflows/_build.yml
|
||||
needs: [prepare]
|
||||
with:
|
||||
build_os: "macos-13-xlarge" # Only macos-13-xlarge has arm64 support.
|
||||
artifact_prefix: "arm64-"
|
||||
git_ref: "master"
|
||||
git_sha: ${{ github.event.inputs.git_sha }}
|
||||
secrets:
|
||||
APPLE_DEVELOPER_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
|
||||
APPLE_DEVELOPER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
|
||||
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
||||
AC_USERNAME: ${{ secrets.AC_USERNAME }}
|
||||
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
|
||||
AC_PROVIDER: ${{ secrets.AC_PROVIDER }}
|
||||
AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }}
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
release_arm64:
|
||||
name: Release (arm64)
|
||||
uses: ./.github/workflows/_release.yml
|
||||
needs: [build_arm64]
|
||||
if: ${{ needs.build_arm64.outputs.package_created }}
|
||||
with:
|
||||
plan_artifact: arm64-build-plan
|
||||
dmg_artifact: arm64-dmg
|
||||
update_casks: false
|
||||
secrets:
|
||||
TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
|
||||
|
||||
22
.github/workflows/update-metadata.yml
vendored
22
.github/workflows/update-metadata.yml
vendored
@@ -3,27 +3,27 @@ name: Update Metadata
|
||||
concurrency: jimeh/emacs-builds/update-metadata
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0,12 * * *"
|
||||
- cron: "0 0 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-metadata:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout tap repository main branch
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout meta branch
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: meta
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.17
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('builder/**/go.sum') }}
|
||||
restore-keys: ${{ runner.os }}-go-
|
||||
go-version: "1.21"
|
||||
- name: update total downloads shield JSON
|
||||
run: go run . badges downloads -o total-downloads/shield.json
|
||||
run: >-
|
||||
go run . badges downloads
|
||||
--output total-downloads/shield.json
|
||||
--cache total-downloads/.cache.json
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- name: commit and push changes to meta branch
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
|
||||
68
README.md
68
README.md
@@ -10,7 +10,7 @@
|
||||
<a href="https://github.com/jimeh/emacs-builds/releases/latest"><img alt="GitHub release (stable)" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fjimeh%2Fhomebrew-emacs-builds%2Fmeta%2FCasks%2Femacs-app%2Fshield.json"></a>
|
||||
<a href="https://github.com/jimeh/emacs-builds/releases?q=pretest&expanded=true"><img alt="GitHub release (pretest)" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fjimeh%2Fhomebrew-emacs-builds%2Fmeta%2FCasks%2Femacs-app-pretest%2Fshield.json"></a>
|
||||
<a href="https://github.com/jimeh/emacs-builds/releases?q=master&expanded=true"><img alt="GitHub release (nightly)" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fjimeh%2Fhomebrew-emacs-builds%2Fmeta%2FCasks%2Femacs-app-nightly%2Fshield.json"></a>
|
||||
<a href="https://github.com/jimeh/emacs-builds/releases?q=emacs-29&expanded=true"><img alt="GitHub release (nightly@emacs-29)" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fjimeh%2Fhomebrew-emacs-builds%2Fmeta%2FCasks%2Femacs-app-nightly-29%2Fshield.json"></a>
|
||||
<a href="https://github.com/jimeh/emacs-builds/releases?q=master&expanded=true"><img alt="GitHub release (monthly)" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fjimeh%2Fhomebrew-emacs-builds%2Fmeta%2FCasks%2Femacs-app-monthly%2Fshield.json"></a>
|
||||
<a href="https://github.com/jimeh/emacs-builds/issues/7"><img alt="GitHub release (known good nightly)" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fjimeh%2Fhomebrew-emacs-builds%2Fmeta%2FCasks%2Femacs-app-good%2Fshield.json"></a>
|
||||
<a href="https://github.com/jimeh/emacs-builds/issues"><img alt="GitHub issues" src="https://img.shields.io/github/issues-raw/jimeh/emacs-builds?style=flat&logo=github&logoColor=white"></a>
|
||||
<a href="https://github.com/jimeh/emacs-builds/pulls"><img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr-raw/jimeh/emacs-builds?style=flat&logo=github&logoColor=white"></a>
|
||||
@@ -56,8 +56,11 @@
|
||||
|
||||
## System Requirements
|
||||
|
||||
- macOS 11.x (Big Sur) or later (uses Rosetta2 on Apple Silicon machines).
|
||||
- Xcode Command Line Tools for native compilation (Emacs 28.x and later).
|
||||
- macOS 13 Ventura or later for Apple Silicon builds.
|
||||
- macOS 12 Monterey or later for Intel builds, which can run on Apple Silicon
|
||||
via Rosetta2.
|
||||
- Xcode Command Line Tools to use native compilation in Emacs, available since
|
||||
28.x.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -84,32 +87,53 @@ for at least a day or two without any obvious issues.
|
||||
brew tap jimeh/emacs-builds
|
||||
```
|
||||
2. Install one of the available casks:
|
||||
- `emacs-app` for the latest stable release of Emacs (includes native-comp
|
||||
since v28.1):
|
||||
- `emacs-app` — Latest stable release of Emacs.
|
||||
```
|
||||
brew install --cask emacs-app
|
||||
```
|
||||
- `emacs-app-pretest` for the latest pretest build from Emacs:
|
||||
- `emacs-app-pretest` — Latest pretest build of Emacs.
|
||||
```
|
||||
brew install --cask emacs-app-pretest
|
||||
```
|
||||
- `emacs-app-nightly` for the latest nightly build from Emacs' `master`
|
||||
branch:
|
||||
- `emacs-app-nightly` — Build of Emacs from the `master` branch, updated
|
||||
every night.
|
||||
```
|
||||
brew install --cask emacs-app-nightly
|
||||
```
|
||||
- `emacs-app-monthly` — Build of Emacs from the `master` branch, updated on
|
||||
the 1st of each month. These includes native Apple Silicon support.
|
||||
```
|
||||
brew install --cask emacs-app-monthly
|
||||
```
|
||||
- `emacs-app-good` for the latest known good nightly build listed on [#7][7]:
|
||||
```
|
||||
brew install --cask emacs-app-good
|
||||
```
|
||||
- `emacs-app-nightly-29` for the latest Emacs 29.x nightly build from the
|
||||
`emacs-29` branch:
|
||||
```
|
||||
brew install --cask emacs-app-nightly-29
|
||||
```
|
||||
|
||||
[7]: https://github.com/jimeh/emacs-builds/issues/7
|
||||
|
||||
## Apple Silicon
|
||||
|
||||
Native builds for Apple Silicon is supported, but currently GitHub's M1-based
|
||||
Actions Runners are prohibitively expensive for nightly builds. Intel builds
|
||||
though do work on Apple Silicon machines via Rosetta2, with a minor performance
|
||||
impact.
|
||||
|
||||
Due to the costs, Apple Silicon builds are for now only scheduled for the 1st of
|
||||
each month. The `emacs-app-monthly` Homebrew Cask will always be pointing at a
|
||||
release that includes Intel and Apple Silicon builds.
|
||||
|
||||
Builds for stable releases of Emacs will also include both Intel and Apple
|
||||
Silicon builds.
|
||||
|
||||
### Costs
|
||||
|
||||
At time of writing (2023-11-21), an average Apple Silicon build uses around 17
|
||||
minutes of billable time, at a cost of $0.16 USD per minute, that comes out to
|
||||
around $2.72 per build. I am considering enabling sponsorship on this repository
|
||||
in an effort to cover the costs for more frequent Apple Silicon builds, and will
|
||||
update here if/when I have any news.
|
||||
|
||||
## Use Emacs.app as `emacs` CLI Tool
|
||||
|
||||
### Installed via Homebrew Cask
|
||||
@@ -192,3 +216,21 @@ GitHub Actions workflow run which produced the build.
|
||||
Please see [Issues][] for details of things to come, or to report issues.
|
||||
|
||||
[issues]: https://github.com/jimeh/emacs-builds/issues
|
||||
|
||||
## News / Recent Changes
|
||||
|
||||
### 2023-11-22 — Apple Silicon builds, drop macOS 11 support
|
||||
|
||||
Apple Silicon builds are now available, but limited to stable releases, and
|
||||
nightly builds on the 1st of each month due to the cost of using M1-based
|
||||
runners on GitHub Actions. Apple Silicon builds also require macOS 13 Ventura,
|
||||
as that is the oldest macOS version available on M1-based runners.
|
||||
|
||||
Additionally, Intel builds minimum required macOS version has been increased
|
||||
from macOS 11 Big Sur, to macOS 12 Monterey. This was needed as Homebrew no
|
||||
longer supports Big Sur, leading to very lengthy and error prone builds as all
|
||||
Homebrew dependencies had to be installed from source.
|
||||
|
||||
If dropping support for macOS 11 turns out to be a big issue, it may be possible
|
||||
to offer macOS 11 compatible builds on a less frequent schedule similar to what
|
||||
we're doing with Apple Silicon.
|
||||
|
||||
Reference in New Issue
Block a user