From 6e9fb0d4775ff28e241ea3fe3c7968ed06863953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 27 Jun 2023 07:42:42 +0100 Subject: [PATCH] add github actions for comparison with gitea actions --- .gitea/workflows/build.yaml | 1 - .github/workflows/build.yaml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2d9c6eb6..3e136bab 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -14,7 +14,6 @@ jobs: logger: pretty log-directives: nix_installer=trace backtrace: full - planner: linux-multi init: none - name: Run the Magic Nix Cache uses: https://github.com/DeterminateSystems/magic-nix-cache-action@v1 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..b92fb883 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,23 @@ +name: use nix + +on: push +env: + DEV_SHELL_NAME: CI +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v4 + with: + logger: pretty + log-directives: nix_installer=trace + backtrace: full + - name: Run the Magic Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@v1 + - name: Check + run: | + nix flake metadata + nix flake check + nix --no-sandbox develop -c statix check