Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/validate-brewfiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Validate Brewfiles
permissions:
contents: read

on:
pull_request:
paths:
- "brew/**"
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5

- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@8c478e7f5c2c2df9efba834a3568d4fe35cdb2a3


- name: Validate Brewfiles
shell: bash
run: |
echo "Validating Brewfiles..."


find "brew" -iname '*\.Brewfile*' -print0 | \
while IFS= read -r -d '' brewfile ; do \
echo "::group:: ===$(basename $brewfile)==="
grep -E -e "^tap" $brewfile > taps.Brewfile
Comment thread
inffy marked this conversation as resolved.
set -xeuo pipefail
brew bundle --file=./taps.Brewfile
if brew bundle exec whoami --file="$brewfile" | grep -F -e "${USER}" ; then
echo "✓ $brewfile is valid"
else
echo "✗ $brewfile validation failed"
exit 1
fi
set +xeuo pipefail
echo "::endgroup::"
done
1 change: 1 addition & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ COPY /iso_files /iso_files
COPY /just /just
COPY /flatpaks /flatpaks
COPY packages.json /
COPY /brew /brew

## aurora image section
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS base
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
tap "gptscript-ai/tap"
tap "homebrew/cask"
brew "aichat"
brew "block-goose-cli"
brew "clio"
Expand Down
4 changes: 4 additions & 0 deletions build_files/shared/build-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ cp -r /ctx/just /tmp/just
cp /ctx/packages.json /tmp/packages.json
rsync -rvK /ctx/system_files/shared/ /

# Homebrew files
mkdir -p /usr/share/ublue-os/homebrew/
cp /ctx/brew/*.Brewfile /usr/share/ublue-os/homebrew/

mkdir -p /tmp/scripts/helpers
install -Dm0755 /ctx/build_files/shared/utils/ghcurl /tmp/scripts/helpers/ghcurl
export PATH="/tmp/scripts/helpers:$PATH"
Expand Down