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:
|
|
|
|
checkPhase:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-02 01:19:07 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-05-12 02:43:50 +00:00
|
|
|
- name: Install Nix
|
2022-04-02 01:19:07 +00:00
|
|
|
uses: cachix/install-nix-action@v17
|
2020-11-23 18:35:42 +00:00
|
|
|
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
|
2021-07-05 15:34:20 +00:00
|
|
|
run: nix-shell --pure --run "cargo test"
|
2021-05-16 15:45:28 +00:00
|
|
|
|
2020-05-12 02:43:50 +00:00
|
|
|
nix-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-02 01:19:07 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-05-12 02:43:50 +00:00
|
|
|
- name: Install Nix
|
2022-04-02 01:19:07 +00:00
|
|
|
uses: cachix/install-nix-action@v17
|
2020-11-23 18:35:42 +00:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2020-05-12 02:43:50 +00:00
|
|
|
- name: nix-build
|
2024-07-06 22:58:25 +00:00
|
|
|
run: nix-build -A ofborg.rs
|