summaryrefslogtreecommitdiff
path: root/ofborg/.github/workflows/ci.yml
blob: 8f71a46e508168cc781922f26ce121ffdd891d73 (plain)
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
28
29
30
31
32
33
name: CI

on:
  push:
    branches: [released]
  pull_request:

jobs:
  checkPhase:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install Nix
        uses: cachix/install-nix-action@v17
        with:
          nix_path: nixpkgs=channel:nixos-unstable
      - name: Set up git
        run: |
          git config --global user.email "ofborg@example.com"
          git config --global user.name "ofborg"
      - name: checkPhase
        run: nix-shell --pure --run "cargo test"

  nix-build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install Nix
        uses: cachix/install-nix-action@v17
        with:
          nix_path: nixpkgs=channel:nixos-unstable
      - name: nix-build
        run: nix-build -A ofborg.rs