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

Fix CI #20

Merged
merged 11 commits into from Mar 2, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
@@ -1,21 +1,20 @@
name: "Build"
on:
pull_request:
branches: ['**']
branches: ["**"]
push:
branches: ['**']
tags: ['**']
branches: ["main"]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
- uses: cachix/install-nix-action@v25
- uses: cachix/cachix-action@v14
with:
name: kubukoz
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- name: Build (main)
if: github.ref == 'refs/heads/main'
Expand All @@ -30,7 +29,7 @@ jobs:

- name: Build (preview)
if: github.event_name == 'pull_request'
run: ./build.sh '.?submodules=1#preview' && cp -Lr ./result public-preview
run: ./build.sh 'preview' && cp -Lr ./result public-preview

- uses: JamesIves/github-pages-deploy-action@v4
name: Deploy (preview)
Expand Down
3 changes: 2 additions & 1 deletion build.sh
Expand Up @@ -2,4 +2,5 @@

PACKAGE_PATH="$1"

nix build "${PACKAGE_PATH:-.?submodules=1}" --print-build-logs
# shallow + there must be a hash: workaround for https://github.com/NixOS/nix/pull/10125
nix build "git+file://$(pwd)/.?shallow=1&submodules=1#${PACKAGE_PATH:-default}" --print-build-logs
30 changes: 24 additions & 6 deletions flake.lock

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