mirror of
https://github.com/jimeh/emacs-builds.git
synced 2026-02-19 11:56:40 +00:00
feat(build/deps): switch from Homebrew to Nix for build dependencies
This commit is contained in:
32
.github/workflows/_build.yml
vendored
32
.github/workflows/_build.yml
vendored
@@ -111,7 +111,7 @@ jobs:
|
||||
- uses: actions/setup-go@v5
|
||||
if: ${{ inputs.os != inputs.build_os }}
|
||||
with:
|
||||
go-version: "1.21"
|
||||
go-version: "1.23"
|
||||
- name: Build emacs-builder tool
|
||||
if: ${{ inputs.os != inputs.build_os }}
|
||||
run: make build
|
||||
@@ -163,34 +163,30 @@ jobs:
|
||||
repository: jimeh/build-emacs-for-macos
|
||||
ref: ${{ needs.prepare.outputs.builder_sha }}
|
||||
path: builder
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: "3.2"
|
||||
- name: Update homebrew
|
||||
run: brew update
|
||||
- name: Fix system python breaking homebrew
|
||||
run: >-
|
||||
find "$(brew --prefix)/bin" -type l
|
||||
-ilname '*/Library/Frameworks/Python.framework/*'
|
||||
-delete
|
||||
- name: Install dependencies
|
||||
run: make bootstrap
|
||||
working-directory: builder
|
||||
env:
|
||||
BUNDLE_WITHOUT: "development"
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Download build-plan artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact_prefix }}build-plan
|
||||
path: ./
|
||||
path: ./builder/
|
||||
- name: Install dependencies
|
||||
run: >-
|
||||
nix develop
|
||||
--command make bootstrap-ruby
|
||||
working-directory: builder
|
||||
env:
|
||||
BUNDLE_WITHOUT: "development"
|
||||
- name: Build Emacs
|
||||
run: >-
|
||||
./builder/build-emacs-for-macos
|
||||
nix develop
|
||||
--command ./build-emacs-for-macos
|
||||
--log-level debug
|
||||
--plan build-plan.yml
|
||||
--native-full-aot
|
||||
--no-self-sign
|
||||
${{ inputs.build_args }}
|
||||
working-directory: builder
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Upload unsigned app artifact
|
||||
|
||||
4
.github/workflows/_prepare.yml
vendored
4
.github/workflows/_prepare.yml
vendored
@@ -12,7 +12,7 @@ on:
|
||||
description: Git ref to checkout of build-emacs-for-macos
|
||||
required: false
|
||||
type: string
|
||||
default: "v0.6.48"
|
||||
default: "v0.6.50"
|
||||
secrets:
|
||||
TAP_REPO_TOKEN:
|
||||
description: Personal Access Token for Homebrew Tap repo
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
if-no-files-found: error
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.21"
|
||||
go-version: "1.23"
|
||||
- name: Build emacs-builder tool
|
||||
run: make build
|
||||
- name: Upload emacs-builder artifact
|
||||
|
||||
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -13,7 +13,7 @@ on:
|
||||
builder_ref:
|
||||
description: "Git ref to checkout of build-emacs-for-macos"
|
||||
required: true
|
||||
default: "v0.6.48"
|
||||
default: "v0.6.50"
|
||||
builder_args:
|
||||
description: Custom arguments passed to build script
|
||||
required: false
|
||||
|
||||
6
.github/workflows/update-metadata.yml
vendored
6
.github/workflows/update-metadata.yml
vendored
@@ -11,12 +11,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout meta branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: meta
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.21"
|
||||
go-version: "1.23"
|
||||
- name: update total downloads shield JSON
|
||||
run: >-
|
||||
go run . badges downloads
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- name: commit and push changes to meta branch
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "chore(meta): update metadata files"
|
||||
commit_user_name: github-actions[bot]
|
||||
|
||||
Reference in New Issue
Block a user