Skip to content

Commit

Permalink
Merge branch 'master' into dev-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jun 28, 2024
2 parents 787ad90 + a982b1d commit 0fa17d8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/dorothy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,14 @@ jobs:
- name: 'Trunk Check'
shell: bash -leo pipefail {0}
run: dorothy check
homebrew-macos-test:
runs-on: macos-latest
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
runner-test:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-24.04, ubuntu-22.04, macos-14, macos-12]
# ubuntu-20.04 not supported, echo-wait fails: https://github.com/bevry/dorothy/actions/runs/9705310169/job/26787151094#step:2:1346
runs-on: ${{ matrix.runner }}
steps:
- name: 'Dorothy Test'
env:
Expand All @@ -119,7 +125,11 @@ jobs:
# ensure dorothy is cloned, and run command
bash -c "$(curl -fsSL 'https://dorothy.bevry.me/run?slug=${{ github.repository }}&commit=${{ github.sha }}')" -- dorothy test
fresh-macos-test:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
runner: [macos-14, macos-12]
runs-on: ${{ matrix.runner }}
steps:
- name: 'Uninstall Homebrew'
run: |
Expand All @@ -131,10 +141,10 @@ jobs:
run: |
# ensure dorothy is cloned, and run command
bash -c "$(curl -fsSL 'https://dorothy.bevry.me/run?slug=${{ github.repository }}&commit=${{ github.sha }}')" -- dorothy test
distro-test:
continue-on-error: true
container-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- 'ubuntu:latest' # https://hub.docker.com/_/ubuntu
Expand Down
15 changes: 3 additions & 12 deletions commands.beta/ytd-helper
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function ytd_helper() (
Helper for interacting with [youtube-dl] and its clones. Wraps with custom flags for common tasks.
USAGE:
ytd-helper [...options] <url> [-- [... tool options]]
ytd-helper [...options] -- ...<url> [... tool options]
OPTIONS:
<url>
Expand Down Expand Up @@ -118,7 +118,7 @@ function ytd_helper() (
# Action

# arguments
local item tool='' url=''
local item tool=''
while test "$#" -ne 0; do
item="$1"
shift
Expand Down Expand Up @@ -214,13 +214,7 @@ function ytd_helper() (
break
;;
'--'*) help "An unrecognised flag was provided: $item" ;;
*)
if test -z "$url"; then
url="$item"
else
help "An unrecognised argument was provided: $item"
fi
;;
*) help "An unrecognised argument was provided: $item" ;;
esac
done

Expand All @@ -245,9 +239,6 @@ function ytd_helper() (
fi
cmd=("$tool" "${cmd[@]}")

# handle url
cmd+=("$url")

# =====================================
# Action

Expand Down
8 changes: 3 additions & 5 deletions commands/setup-mac-brew
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ function setup_mac_brew() (
'homebrew/core'
'homebrew/cask'
# deprecated
'caskroom/cask' # replaced by 'homebrew/cask'
'caskroom/fonts' # replaced by 'homebrew/cask-fonts'
'caskroom/cask' # replaced by 'homebrew/cask'
'caskroom/fonts' # replaced by 'homebrew/cask-fonts'
'homebrew/cask-fonts' # fonts mainlined https://github.com/ryanoasis/nerd-fonts/issues/1635#issue-2296375213
)
local HOMEBREW_TAPS=()
local HOMEBREW_FORMULAS=()
Expand Down Expand Up @@ -64,9 +65,6 @@ function setup_mac_brew() (

# add essentials
HOMEBREW_TAPS+=(
# The fonts tap, is used by HOMEBREW_FONTS
'homebrew/cask-fonts'

# the ffmpeg tap includes all the options, and is used later
# https://github.com/homebrew-ffmpeg/homebrew-ffmpeg
# https://trac.ffmpeg.org/wiki/CompilationGuide/macOS#Additionaloptions
Expand Down

0 comments on commit 0fa17d8

Please sign in to comment.