diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 61 | ||||
| -rw-r--r-- | .github/workflows/docs.yml | 2 |
2 files changed, 62 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5754292 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,61 @@ +name: "[Domino] Build" + +on: + push: + branches: [ "master" ] + paths: + - .github/workflows/** + - config/** + - docs/** + - include/** + - test/** + - src/** + - flake.nix + - flake.lock + - rebar.config + - rebar-deps.nix + - rebar.lock + + pull_request: + branches: [ "master" ] + paths: + - .github/workflows/** + - config/** + - docs/** + - include/** + - test/** + - src/** + - flake.nix + - flake.lock + - rebar.config + - rebar-deps.nix + - rebar.lock + +permissions: + contents: read + +jobs: + build: + name: "[Domino] Nix Build" + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + lfs: true + + - name: Install Nix + uses: cachix/install-nix-action@v31 + with: + # Mostly to avoid GitHub rate limiting + extra_nix_config: | + access-tokens = github.com=${{ github.token }} + + - name: Install Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@main + + # Actual Pipelines + - name: "Build" + run: | + nix build diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 84048cf..0d3aa58 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -73,6 +73,7 @@ jobs: deploy: name: Deploy to GitHub Pages + if: github.event_name != 'pull_request' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} @@ -82,5 +83,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - if: github.event_name != 'pull_request' uses: actions/deploy-pages@v4 |
