Skip to content
Closed
Show file tree
Hide file tree
Changes from 6 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
1 change: 0 additions & 1 deletion .github/workflows/build-image-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
paths-ignore:
- "**.md"
- "system_files/shared/usr/share/ublue-os/bazaar/config.yaml"
- "**.Brewfile"
- "just/*.just"
workflow_call:
workflow_dispatch:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build-image-latest-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ on:
paths-ignore:
- "**.md"
- "iso_files/**"
- "flatpaks/**"
- ".github/workflows/*iso*"
- "system_files/shared/usr/share/ublue-os/bazaar/config.yaml"
- "**.Brewfile"
- "just/*.just"
workflow_call:
workflow_dispatch:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build-image-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ on:
paths-ignore:
- "**.md"
- "iso_files/**"
- "flatpaks/**"
- ".github/workflows/*iso*"
- "system_files/shared/usr/share/ublue-os/bazaar/config.yaml"
- "**.Brewfile"
- "just/*.just"
schedule:
- cron: "50 5 * * 0" # 5:50 UTC sunday
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/validate-brewfiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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@main

Check warning on line 17 in .github/workflows/validate-brewfiles.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/validate-brewfiles.yml#L17

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.

- 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)==="
Comment thread
inffy marked this conversation as resolved.
Outdated
grep -E -e "^tap" $brewfile > taps.Brewfile
Comment thread
inffy marked this conversation as resolved.
Outdated
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
Comment thread
inffy marked this conversation as resolved.
Outdated
echo "::endgroup::"
done
37 changes: 37 additions & 0 deletions .github/workflows/validate-flatpaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Validate Flatpaks
permissions:
contents: read

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

- name: Set up Flathub
shell: bash
run: |
sudo apt install -y flatpak
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

- name: Validate Brewfiles
shell: bash
run: |
echo "Validating flatpak files in flatpaks/ directory..."

set -xeuo pipefail

find "flatpaks" -iname '*\.list*' -print0 | \
while IFS= read -r -d '' flatpaks_file ; do \
echo "::group:: ===$(basename "$flatpaks_file")==="
grep -v "#.*" "$flatpaks_file" | \
while read -r flatpak ; do \
flatpak remote-info --user flathub "${flatpak}"
done
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