Skip to content

Commit

Permalink
WIP: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed May 24, 2024
1 parent 070cc1b commit 95751e2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Integration tests for dotfiles! Has DevOps gone too far?

name: "Run setup scripts"

on:
push:

jobs:
run:
name: Run setup scripts
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

# - name: Install Nix
# run: sh <(curl -L https://nixos.org/nix/install)

- uses: cachix/install-nix-action@v27

# - name: Install `nix-darwin`
# run: |
# nix --extra-experimental-features 'nix-command flakes' flake init -t nix-darwin

- name: Setup `nix-darwin`
run: nix --extra-experimental-features 'nix-command flakes' run nix-darwin -- switch --flake .#hostname

- name: Rebuild system
run: darwin-rebuild switch --flake .#hostname

0 comments on commit 95751e2

Please sign in to comment.