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
37 changes: 25 additions & 12 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,36 @@ jobs:
- ubuntu:25.10
container:
image: ${{ matrix.os }}
options: --ulimit nofile=1024:1024
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- name: Install dependencies dnf
run: dnf install -y git jq curl >/dev/null 2>&1 || echo "no dnf"
run: dnf install -y git curl >/dev/null 2>&1 || echo "no dnf"
- name: Update apt cache
run: apt update >/dev/null 2>&1 || echo "no apt"
- name: Install dependencies apt
run: >
apt update && apt install -y git jq curl >/dev/null 2>&1;
exit 0;
- name: is curl installed
run: command -v curl >/dev/null 2>&1 || echo "no curl"
- name: PATH
run: echo "$PATH"
run: apt install -y git curl >/dev/null 2>&1 || echo "no apt"
- name: Install chezmoi
run: sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /usr/bin
- name: Init the repo based off the current branch
run: chezmoi init $(pwd)
run: chezmoi init -S .
- name: Show the chezmoi data
run: chezmoi data
run: chezmoi data -S .
- name: Run the chezmoi apply
run: chezmoi apply
run: chezmoi apply -S .
install-and-test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- name: Install chezmoi
run: sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /Users/runner/.local/bin
- name: echo $PATH
run: echo $PATH
- name: which chezmoi
run: which chezmoi
- name: Init the repo based off the current branch
run: chezmoi init -S .
- name: Show the chezmoi data
run: chezmoi data -S .
- name: Run the chezmoi apply
run: chezmoi apply -S .
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

echo "⭐️ Running after 010 install-brew-packages"
# Install GCC First
$BREWBIN install gcc --skip-post-install

# Install deps from generated brew file
$BREWBIN bundle --file=~/.config/brew/Brewfile

4 changes: 2 additions & 2 deletions home/.chezmoitemplates/brew/cask.brew.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ if eq .chezmoi.config.env.OS "darwin" }}
## Common casks
{{- $commonConfig := .data.common }}
{{- $commonConfig := .common }}
{{- if hasKey $commonConfig.packages "brewCaskTaps" }}
{{- range $commonConfig.packages.brewCaskTaps }}
tap "{{ . }}"
Expand All @@ -12,7 +12,7 @@ cask "{{ . }}"
{{- end }}
{{- end }}

## Machine Specific casks: {{- .data.hostname }}
## Machine Specific casks: {{- .hostname }}
{{- $hostConfig := get .hosts .hostname }}
{{- if (and (hasKey $hostConfig "packages") (hasKey $hostConfig.packages "brewCaskTaps")) }}
{{- range $hostConfig.packages.brewCaskTaps }}
Expand Down
Loading