From 275565727ac50552342c13f4a6e000a98a6fbe4e Mon Sep 17 00:00:00 2001 From: damianfral Date: Mon, 6 Nov 2023 16:28:55 +0000 Subject: [PATCH] Add github actions. --- .github/workflows/build.yaml | 30 ++++++++++++++++++++++++ .github/workflows/update-flake-lock.yaml | 21 +++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/update-flake-lock.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..077b1e6 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,30 @@ +name: build +on: push +# +jobs: + build-package: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: install nix + uses: cachix/install-nix-action@v23 + - run: nix build + + build-devshell: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: install nix + uses: cachix/install-nix-action@v23 + - run: nix build .#devShells.x86_64-linux.default + + check: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: install nix + uses: cachix/install-nix-action@v23 + - run: nix flake check diff --git a/.github/workflows/update-flake-lock.yaml b/.github/workflows/update-flake-lock.yaml new file mode 100644 index 0000000..946f7bb --- /dev/null +++ b/.github/workflows/update-flake-lock.yaml @@ -0,0 +1,21 @@ +name: update-flake-lock +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 15 1 * *' + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install Nix + uses: cachix/install-nix-action@v23 + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@v20 + with: + pr-title: "Update flake.lock ." + pr-labels: | + dependencies + automated