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

Detect failing nix builds on CI #120

Merged
merged 4 commits into from
Jun 10, 2022
Merged
Changes from all 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
18 changes: 15 additions & 3 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: "Hoff"

agent:
machine:
type: "e1-standard-2"
type: "e1-standard-4"
os_image: "ubuntu1804"

# If we push a new build to some branch that isn't master, and another build is
Expand Down Expand Up @@ -83,10 +83,22 @@ blocks:
# Check shell scripts for issues.
- "shellcheck package/*.sh package/deb-postinst"

# Run build and tests in Nix, and push the result to Cachix.
# Print working directory for debugging purposes
- "pwd"

Comment on lines +86 to +88
Copy link
Member

Choose a reason for hiding this comment

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

Is this still necessary?

Copy link
Author

Choose a reason for hiding this comment

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

Not strictly, but I think it is useful to record the working directory since we are creating the nix-store-location file there.

# Run build and tests in Nix
# Because this is a public repository, and not everyone is using Nix,
# we keep the stack setup around. The Nix build however is used in production.
- "nix-build --no-out-link release.nix | cachix push channable-public"
- "nix-build --no-out-link release.nix >nix-store-location"
maartenberg marked this conversation as resolved.
Show resolved Hide resolved

# Display Nix store location for debugging purposes
- "cat nix-store-location"

# push the result to Cachix.
- "cat nix-store-location | cachix push channable-public"

# Remove store location (unneeded now)
- "rm nix-store-location"

# Store a copy of the nix store. This will be refreshed daily, which
# is more than sufficient for this repo.
Expand Down