ofborg/.github/workflows/ci.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

2020-05-12 02:43:50 +00:00
name: CI
on:
push:
2020-06-15 16:57:27 +00:00
branches: [released]
2020-05-12 02:43:50 +00:00
pull_request:
jobs:
pedantry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Cargo Pedantry
run: nix-shell --run checkPhase -A mozilla-rust-overlay
2020-05-12 02:43:50 +00:00
checkPhase:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
2020-05-12 02:43:50 +00:00
- name: Set up git
run: |
git config --global user.email "ofborg@example.com"
git config --global user.name "ofborg"
- name: checkPhase
run: nix-shell --run checkPhase
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
2020-05-12 02:43:50 +00:00
- name: nix-build
run: nix-build -A ofborg.rs -A ofborg.php