Skip to content

Emacs build

Emacs build #10

Workflow file for this run

name: Emacs build
on: workflow_dispatch
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-11]
steps:
- uses: actions/checkout@v3
- name: set env variables
run: |
echo "EMACS_VER=28.3-rc1" >> $GITHUB_ENV
echo "MACPORT_VER=$MACPORT_VER-mac-9.2" >> $GITHUB_ENV
echo "COMMIT_HASH=25008e087de5e784605a7fe0b445af0cbfa6bfc4" >> $GITHUB_ENV
echo "OUTPUT_DIR=build_out" >> $GITHUB_ENV
- name: get current time
run: echo "REL_DATE=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
- name: get OS version
run: echo "OS_VER=$(sw_vers -productVersion)" >> $GITHUB_ENV
- name: prepare
run: ./build-scripts/prepare_homebrew.sh
- name: build and pack
run: |
pushd build-scripts
./fetch-emacs-mac-port.sh "${{ env.MACPORT_VER }}" "${{ env.COMMIT_HASH }}" "${{ env.OUTPUT_DIR }}"
./build-emacs.sh "${{ env.OUTPUT_DIR }}" "${{ env.EMACS_VER }}"
pushd "${{ env.OUTPUT_DIR }}"; ../copylib.rb $(brew --prefix); popd
./make-zipball.sh "${{ env.OUTPUT_DIR }}/tmproot" "${{ env.MACPORT_VER }}"
ls -d ${{ env.OUTPUT_DIR }}/tmproot/*.zip
popd
- name: publish
uses: softprops/action-gh-release@v1
with:
name: ${{ matrix.os }}-${{ env.REL_DATE }}
draft: true
files: |
build-scripts/${{ env.OUTPUT_DIR }}/tmproot/emacs-${{ env.MACPORT_VER }}-${{ env.OS_VER }}.zip
build-scripts/${{ env.OUTPUT_DIR }}/tmproot/emacs-${{ env.MACPORT_VER }}-${{ env.OS_VER }}-spacemacs-icon.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}