Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .gitignore && add dockerApps.evaluation-test to CI #87

Merged
merged 6 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ docker/
Makefile
*.sqlite
react-web/node_modules/
.pre-commit-config.yaml
*.ignore.*
todo.txt
23 changes: 20 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nix/ci.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

{
includedPaths = [
"dockerApps.evaluation-test"
"apps.dockerApps.evaluation-test"
];
}
4 changes: 2 additions & 2 deletions nix/docker-files/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
finalImageName = "nixos/nix";
finalImageTag = "2.15.0";
};
genFlake = inputs'.self.packages.dapps-certification-helpers-exe-generate-flake-ghc927;
Copy link
Contributor Author

@zeme-wana zeme-wana Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aliases for your cabal executables only (this excludes benchmarks and test suites) are added to your packages and apps flake outputs.
Alias means just the executable name as found in your cabal file, without the $CabalPackageName-exe- prefix.

For projects supporting a single compiler (like in this repo, ghc927), the compiler name is no longer appended to the flake outputs names.

inputs'.self.packages.dapps-certification-helpers-exe-generate-flake-ghc927 ->
inputs'.self.packages.generate-flake

inputs'.self.apps.dapps-certification-exe-plutus-certificatio-ghc927 ->
inputs'.self.apps.plutus-certification

If you cabal project has multiple executables with the same name across your cabal files, a warning will be generated when running list-flake-outputs and no aliases will be created.

buildFlake = inputs'.self.apps.dapps-certification-helpers-exe-build-flake-ghc927;
genFlake = inputs'.self.packages.generate-flake;
buildFlake = inputs'.self.packages.build-flake;
image = pkgs.dockerTools.buildImage (imgAttributes // {
fromImage = nixImage;
diskSize = 5120;
Expand Down
2 changes: 1 addition & 1 deletion nix/per-system-outputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{ nix, inputs', l, system, ... }:
{
defaultPackage = inputs'.self.packages.plutus-certification-exe-plutus-certification-ghc927;
defaultPackage = inputs'.self.packages.plutus-certification;

apps.dockerApps = l.optionalAttrs (system == "x86_64-linux") nix.docker-files.docker;
}
Loading