aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
blob: 0815768e4fa32654d9e88f82aa57224a0f8b6a2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
name: CI
on:
  push:
    paths: [yae.json, '**/*.nix', '*.lock']
  pull_request:
    paths: [yae.json, '**/*.nix', '*.lock']
  workflow_dispatch:
  workflow_run:
    workflows: [Yae Update]
    types: [completed]
jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: DeterminateSystems/nix-installer-action@main
      - uses: DeterminateSystems/magic-nix-cache-action@main
      - uses: cachix/cachix-action@v14
        if: github.ref == 'refs/heads/main'
        with:
          name: tsutsumi
          authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
          skipPush: true
      - name: Install omnix
        run: nix --accept-flake-config profile install "github:juspay/omnix"
      - run: om ci