From fd0d5ae0f5a77d0d97e1d869bae81f93aba30c24 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sun, 22 Oct 2023 20:41:28 +0800 Subject: [PATCH] feat: add nix build ci --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..aab8782 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +on: + push: + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - run: nix build -L .#default + - uses: actions/upload-artifact@v3 + with: + name: static-build + path: result/bin