Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ jobs:
name: digitallyinduced
skipPush: true

# # Initialize custom cachix for pushing
# - name: Custom Cachix Init
# uses: cachix/cachix-action@v15
# with:
# name: CHANGE-ME
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# skipPush: true

# Free up disk space before building
- name: Free disk space
run: |
Expand Down Expand Up @@ -68,6 +76,12 @@ jobs:
# Execute the tests.
runghc $(make print-ghc-extensions) -i. -ibuild -iConfig Test/Main.hs

# Push to cachix after successful tests
# - name: Push to Cachix
# if: github.ref == 'refs/heads/main'
# run: |
# nix build --no-link --json .#nixosConfigurations.qa.config.system.build.toplevel | jq -r '.[].outputs.out' | cachix push CHANGE-ME

deploy:
name: Deploy
needs: tests
Expand Down
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,15 @@
};

};

# Add own cachix cache here to speed up builds.
# Uncomment the following lines and replace `CHANGE-ME` with your cachix cache name
# nixConfig = {
# extra-substituters = [
# "https://CHANGE-ME.cachix.org"
# ];
# extra-trusted-public-keys = [
# "CHANGE-ME.cachix.org-1:CHANGE-ME-PUBLIC-KEY"
# ];
# };
}