Emacs build #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=29.1" >> $GITHUB_ENV | |
echo "MACPORT_VER=29.1-mac-10.0" >> $GITHUB_ENV | |
echo "COMMIT_HASH=65c6c96f27afa446df6f9d8eff63f9cc012cc738" >> $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: pushd build-scripts; ./prepare_homebrew.sh; popd | |
- 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 }}" | |
./install_libs.sh $(pwd) "${{ env.OUTPUT_DIR }}" | |
./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 }} |