You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
650 B

  1. name: Build with Nix Workflow
  2. on:
  3. schedule:
  4. - cron: '0 0 * * 1'
  5. workflow_dispatch:
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. timeout-minutes: 120
  10. steps:
  11. - uses: styfle/cancel-workflow-action@0.11.0
  12. name: Cancel Outdated Builds
  13. with:
  14. all_but_latest: true
  15. access_token: ${{ github.token }}
  16. - name: Install Nix
  17. uses: cachix/install-nix-action@v21
  18. - name: Checkout Repository
  19. uses: actions/checkout@v3
  20. # sanity check that repository builds with nix
  21. - name: Build
  22. run: |
  23. nix develop -c cargo build --all-targets --release --workspace