6c13d402fb
This fixes the `Unable to process command '::add-path::/nix/var/nix/profiles/per-user/runner/profile/bin' successfully.` errors (this was deprecated by GitHub). Also fix alignment, to ease copy-pasting.
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [released]
|
|
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
|
|
|
|
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
|
|
- 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
|
|
- name: nix-build
|
|
run: nix-build -A ofborg.rs -A ofborg.php
|