Skip to content

Build Homebrew formulas (Ubuntu-20) #12

Build Homebrew formulas (Ubuntu-20)

Build Homebrew formulas (Ubuntu-20) #12

name: Build Homebrew formulas (Ubuntu-20)
on:
workflow_dispatch:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Brew Recipes
run: |
VRS=`grep meVER microemacs/src/evers.mak | grep -oE '[0-9]+' | sed -E 's/^([0-9])$/0\1/' | paste -sd ''`
echo "VRS=$VRS" >> $GITHUB_ENV
echo $VRS
cd microemacs/brew
mkdir recipes
make tpl2rb version=${VRS}
cp *.rb recipes
cd ..
- name: Create Readme folder
run: |
make -f microemacs/brew/Makefile readme
- name: Upload linux downloads
uses: actions/upload-artifact@v4
with:
name: Jasspa_MicroEmacs_${{ env.VRS }}-formula-downloads
path: microemacs/brew/recipes
- name: Upload Readme archive
uses: actions/upload-artifact@v4
with:
name: Jasspa_MicroEmacs_${{ env.VRS }}_readme
path: Jasspa_MicroEmacs_${{ env.VRS }}_readme