From 9eb9594c67df776d0c8253934d8737f96f3f0c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Estrella?= <2049686+sestrella@users.noreply.github.com> Date: Wed, 28 Aug 2024 23:40:09 -0500 Subject: [PATCH] ci: Update CI workflow (#52) --- .github/workflows/build.yml | 28 ---------------------------- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 27 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 91798b3..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: build - -on: push - -concurrency: - group: build-${{ github.ref }} - cancel-in-progress: true - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Check Nix flake inputs - uses: DeterminateSystems/flake-checker-action@v5 - - name: Install Nix - uses: cachix/install-nix-action@v26 - with: - extra_nix_config: | - substituters = https://cache.nixos.org https://devenv.cachix.org - trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= - - name: Build configuration - run: nix run home-manager/release-24.05 -- build --flake ${{ github.workspace }} - timeout-minutes: 5 - - name: Activate the configuration - run: ./result/activate diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..30eb03c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +--- +name: CI + +on: push + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Check Nix flake inputs + uses: DeterminateSystems/flake-checker-action@v8 + - name: Install Nix + uses: cachix/install-nix-action@v27 + - name: Setup Cachix + uses: cachix/cachix-action@v15 + with: + name: devenv + - name: Build configuration + run: nix run home-manager/release-24.05 -- build --flake ${{ github.workspace }} + timeout-minutes: 5 diff --git a/README.md b/README.md index e902be7..52683a8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Home Manager Configuration -[![build](https://github.com/sestrella/home-manager.config/actions/workflows/build.yml/badge.svg)](https://github.com/sestrella/home-manager.config/actions/workflows/build.yml) +[![CI](https://github.com/sestrella/home-manager.config/actions/workflows/ci.yml/badge.svg)](https://github.com/sestrella/home-manager.config/actions/workflows/ci.yml) My [Home Manager](https://github.com/nix-community/home-manager) configuration.