Online Build #2510
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: Online Build | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "Formula/**" | |
- "patches/**" | |
- "Library/**" | |
- ".github/workflows/online.yml" | |
pull_request: | |
paths: | |
- ".github/workflows/online.yml" | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
tap-and-install: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-12] | |
steps: | |
- name: Tap emacs-plus | |
run: brew tap d12frosted/emacs-plus | |
- name: Build emacs-plus | |
run: brew install emacs-plus | |
- name: Test installation | |
run: $(brew --prefix)/bin/emacs --batch --eval='(print (+ 2 2))' | |
install: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-12] | |
steps: | |
- name: Build emacs-plus | |
run: brew install d12frosted/homebrew-emacs-plus/emacs-plus --verbose | |
- name: Test installation | |
run: $(brew --prefix)/bin/emacs --batch --eval='(print (+ 2 2))' | |
- name: Pack up build logs | |
if: ${{ always() }} | |
run: | | |
RUNNER_OS=$(echo "${{ matrix.os }}" | sed 's/ //') | |
echo "runner_os=$RUNNER_OS" >> "$GITHUB_ENV" | |
tar -C ~/Library/Logs/Homebrew/emacs-plus@29/ -czvf ~/Library/Logs/Homebrew/emacs-plus-$RUNNER_OS.tar.gz . | |
- name: Upload logs | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: emacs-plus-${{ env.runner_os }}.tar.gz | |
path: | | |
~/Library/Logs/Homebrew/emacs-plus-${{ env.runner_os }}.tar.gz |