From 4fcc249ff4549bf9d1001d5ec8933bac76fa0465 Mon Sep 17 00:00:00 2001 From: maulanasdqn Date: Wed, 21 Jan 2026 21:23:45 +0700 Subject: [PATCH] ci: add Nix build workflow with Cachix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Build all packages (landing, backoffice, gacha, dimentorin, hackathon, infra) - Push to msdqn Cachix cache - Server can pull pre-built packages from Cachix Requires CACHIX_AUTH_TOKEN secret in GitHub repository settings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/nix-build.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/nix-build.yml diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml new file mode 100644 index 0000000..1de3c6c --- /dev/null +++ b/.github/workflows/nix-build.yml @@ -0,0 +1,40 @@ +name: Nix Build & Cache + +on: + push: + branches: ['develop'] + pull_request: + branches: ['develop'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Setup Cachix + uses: cachix/cachix-action@v15 + with: + name: msdqn + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + + - name: Build all packages + run: | + nix build .#landing -o result-landing + nix build .#backoffice -o result-backoffice + nix build .#gacha -o result-gacha + nix build .#dimentorin -o result-dimentorin + nix build .#hackathon -o result-hackathon + nix build .#infra -o result-infra + + - name: Show build outputs + run: | + echo "Landing: $(readlink result-landing)" + echo "Backoffice: $(readlink result-backoffice)" + echo "Gacha: $(readlink result-gacha)" + echo "Dimentorin: $(readlink result-dimentorin)" + echo "Hackathon: $(readlink result-hackathon)" + echo "Infra: $(readlink result-infra)"