From d666f30475528ce7f50cc3dd92a1693241083fe8 Mon Sep 17 00:00:00 2001 From: rubiigen Date: Fri, 2 Feb 2024 18:29:45 +0000 Subject: major refactor (treewide amongst general cleaning based on my modified dots (with help from notashelf) - perks 1: it works --- .github/workflows/nix.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/nix.yml (limited to '.github/workflows/nix.yml') diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..cc8f046 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,33 @@ +name: Nix Setup + +on: + workflow_call: + inputs: + command: + required: false + type: string + platform: + default: "ubuntu" + required: false + type: string + secrets: + GH_TOKEN: + required: true + +jobs: + nix: + runs-on: "${{ inputs.platform }}-latest" + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + token: "${{ secrets.GH_TOKEN }}" + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Nix Magic Cache + uses: DeterminateSystems/magic-nix-cache-action@main + + - name: "Run Input: ${{ inputs.command }}" + run: "${{ inputs.command }}" -- cgit v1.2.3-54-g00ecf