forked from the-distro/ofborg
Pierre Bourdon
be0a5f5627
The webhook receiver will be rewritten for Gerrit support anyway, so we'll move it into the Rust part instead.
34 lines
797 B
YAML
34 lines
797 B
YAML
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
|