Skip to content

Commit

Permalink
re-enable github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Jan 21, 2025
1 parent 700c05f commit c69c31b
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/home.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Home

on:
pull_request:
push:
branches:
- master
paths-ignore:
- 'GNOME.md'
- 'README.md'
- 'notes/**'
- '.git-crypt/**'
- '.gitattributes'
- '.gitignore'
- 'system/**'
- 'outputs/os.nix'
- 'switch'
- '.mergify.yml'
- 'garnix.yaml'

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
config_name:
- hyprland-edp
- hyprland-hdmi
- hyprland-hdmi-mutable
- xmonad-edp
- xmonad-hdmi
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Push images to ECR
uses: ./.github/actions/push-image-to-ecr
with:
name: ${{ matrix.image_name }}

steps:
- uses: actions/[email protected]

- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v30

- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v15
with:
name: gvolpe-nixos
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

# Needed because cachix is also installed by Home Manager
- name: "Set priority flag for Cachix 🚩"
run: nix-env --set-flag priority 0 cachix

- name: "Build ${{ matrix.config_name }} Home Manager config 🏠"
run: nix build .#homeConfigurations.${{ matrix.config_name }}.activationPackage -L
61 changes: 61 additions & 0 deletions .github/workflows/nixos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: NixOS

on:
pull_request:
paths-ignore:
- 'home/**'
push:
branches:
- master
paths-ignore:
- 'GNOME.md'
- 'README.md'
- 'notes/**'
- '.git-crypt/**'
- '.gitattributes'
- '.gitignore'
- 'home/**'
- 'outputs/hm.nix'
- 'switch'
- '.mergify.yml'
- 'garnix.yaml'

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
hostname:
- dell-xps
- thinkpad-x1
- tongfang-amd
- xmod
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Push images to ECR
uses: ./.github/actions/push-image-to-ecr
with:
name: ${{ matrix.image_name }}

steps:
- uses: actions/[email protected]

- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v30

- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v15
with:
name: gvolpe-nixos
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

# Needed because cachix is also installed by Home Manager
- name: "Set priority flag for Cachix 🚩"
run: nix-env --set-flag priority 0 cachix

- name: "Build ${{ matrix.config_name }} Home Manager config 🏠"
run: nix build .#homeConfigurations.${{ matrix.config_name }}.activationPackage -L

2 changes: 1 addition & 1 deletion .github/workflows/update-metals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fetcher:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.2

- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v18
Expand Down

0 comments on commit c69c31b

Please sign in to comment.