2022-08-30 01:34:35 +00:00
|
|
|
name: Nix build
|
2022-08-29 13:39:18 +00:00
|
|
|
|
2022-08-30 03:36:32 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
- reducer-dev
|
|
|
|
- epic-reducer-project
|
2022-08-29 13:39:18 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-08-30 05:23:32 +00:00
|
|
|
flake-lints:
|
2022-08-30 05:45:12 +00:00
|
|
|
name: All lint
|
2022-08-29 13:39:18 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-08-30 03:36:32 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install nix
|
|
|
|
uses: cachix/install-nix-action@v17
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-22.05
|
|
|
|
- name: Use cachix
|
|
|
|
uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: quantified-uncertainty
|
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
2022-08-30 01:34:35 +00:00
|
|
|
|
2022-08-30 03:36:32 +00:00
|
|
|
- name: Check that lang lints
|
|
|
|
run: nix build .#lang-lint
|
|
|
|
- name: Check that components lints
|
|
|
|
run: nix build .#components-lint
|
|
|
|
- name: Check that website lints
|
|
|
|
run: nix build .#docusaurus-lint
|
|
|
|
- name: Check that vscode extension lints
|
|
|
|
run: nix build .#vscode-lint
|
2022-08-30 06:16:29 +00:00
|
|
|
- name: Check that cli lints
|
|
|
|
run: nix build .#cli-lint
|
2022-08-29 13:39:18 +00:00
|
|
|
|
2022-08-30 05:23:32 +00:00
|
|
|
flake-packages:
|
2022-08-30 05:45:12 +00:00
|
|
|
name: Builds, tests, and bundles
|
2022-08-30 05:23:32 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-08-30 05:25:02 +00:00
|
|
|
needs: flake-lints
|
2022-08-30 05:23:32 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install nix
|
|
|
|
uses: cachix/install-nix-action@v17
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-22.05
|
|
|
|
- name: Use cachix
|
|
|
|
uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: quantified-uncertainty
|
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
|
|
|
2022-08-30 03:36:32 +00:00
|
|
|
- name: Check all lang tests
|
|
|
|
run: nix build .#lang-test
|
|
|
|
- name: Check that lang bundles
|
|
|
|
run: nix build .#lang-bundle
|
|
|
|
- name: Check that components builds
|
|
|
|
run: nix build .#components
|
|
|
|
- name: Check that components bundles
|
|
|
|
run: nix build .#components-bundle
|
2022-08-30 05:18:35 +00:00
|
|
|
|
|
|
|
flake-devshells:
|
2022-08-30 05:45:12 +00:00
|
|
|
name: Development shell environment
|
2022-08-30 05:18:35 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install nix
|
|
|
|
uses: cachix/install-nix-action@v17
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-22.05
|
|
|
|
- name: Use cachix
|
|
|
|
uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: quantified-uncertainty
|
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
2022-08-30 05:45:12 +00:00
|
|
|
- name: Build js devshell
|
2022-08-30 06:16:29 +00:00
|
|
|
run: nix develop --profile just-js
|
2022-08-30 05:45:12 +00:00
|
|
|
- name: Build js & wasm devshell
|
2022-08-30 06:16:29 +00:00
|
|
|
run: nix develop --profile full-shell
|