mirror of
https://github.com/R2Northstar/NorthstarLauncher
synced 2026-08-23 20:26:04 -04:00
Cache nix builds on main (#921)
* cache nix artifacts to cache server instead of uploading them * Revert "cache nix artifacts to cache server instead of uploading them" This reverts commitd9ffaeda92. * Revert "Revert "cache nix artifacts to cache server instead of uploading them"" This reverts commit707b416535. * only run on main the motivation for this is to not completly fill my cache server instantly (which only has 15gb) * push the store path instead of the result path
This commit is contained in:
parent
0075d671d1
commit
47f0fa43b6
1 changed files with 6 additions and 11 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
|
@ -96,17 +96,12 @@ jobs:
|
|||
- name: Build
|
||||
run: nix build
|
||||
|
||||
- name: Extract Short Commit Hash
|
||||
id: extract
|
||||
shell: bash
|
||||
run: echo commit=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: NorthstarLauncher-NIX-${{ steps.extract.outputs.commit }}
|
||||
path: |
|
||||
result/
|
||||
- name: Cache this Build
|
||||
continue-on-error: true
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||
run: |
|
||||
nix run nixpkgs#attic-client -- login northstar https://attic.catornot.net ${{ secrets.ATTIC_CACHE_TOKEN }}
|
||||
nix run nixpkgs#attic-client -- push northstar $(nix build --print-out-paths)
|
||||
|
||||
format-check-cmake-files:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue