Skip to content

Commit

Permalink
adding regression action.
Browse files Browse the repository at this point in the history
  • Loading branch information
sertel committed Apr 18, 2024
1 parent 68630f9 commit d631e16
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Flake build

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out the repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repo
uses: actions/checkout@v2

# Runs the flake
- name: Build
run: | nix build
19 changes: 17 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,29 @@
mathcomp-extra' = mathcomp-extra.mkDrv
{ inherit coqPackages coq; version = "0.1.0"; };
in {
devShell = pkgs.mkShell {
packages =
packages.default = coqPackages.mkCoqDerivation {
pname = "vRATLS";
owner = "Barkhausen-Institut";
version = "0.0.1";

src = ./.;

buildInputs =
(with ocamlPackages; [ dune_3 ])
++
(with pkgs; [coq gnumake])
++
[ssprove' mathcomp-extra'];

meta = {
description = "Formal verification of remote attestation";
license = coqPackages.lib.licenses.mit;
};
};

devShells.default = pkgs.mkShell {
inputsFrom = [self.packages.${system}.default];

shellHook = ''
alias ll="ls -lasi"
alias spacemacs="HOME=. emacs"
Expand Down

0 comments on commit d631e16

Please sign in to comment.