mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 10:13:14 -06:00
2456af8d0c
Bumps [DeterminateSystems/magic-nix-cache-action](https://github.com/determinatesystems/magic-nix-cache-action) from 2 to 7. - [Release notes](https://github.com/determinatesystems/magic-nix-cache-action/releases) - [Commits](https://github.com/determinatesystems/magic-nix-cache-action/compare/v2...v7) --- updated-dependencies: - dependency-name: DeterminateSystems/magic-nix-cache-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: Run Nix Flake Checks
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
inputs:
|
|
lockFile:
|
|
description: 'flake.lock file'
|
|
type: string
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# The default disk size of these runners is ~14GB
|
|
# Cleanup the disk, see upstream discussion https://github.com/actions/runner-images/issues/2840.
|
|
- name: Cleanup Disk Space
|
|
run: |
|
|
echo "Before removing files:"
|
|
df -h
|
|
sudo rm -rf /usr/share/dotnet
|
|
sudo rm -rf /opt/ghc
|
|
sudo rm -rf /opt
|
|
sudo rm -rf "/usr/local/share/boost"
|
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
|
echo "After removing files:"
|
|
df -h
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
|
|
|
- uses: cachix/cachix-action@v14
|
|
with:
|
|
name: daylin
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
|
|
- name: write lock file
|
|
if: "${{ inputs.lockFile != '' }}"
|
|
run: |
|
|
echo '${{ inputs.lockFile }}' > flake.lock
|
|
git diff
|
|
|
|
- name: Build
|
|
run: |
|
|
cachix watch-exec daylin -- nix build --accept-flake-config '.#checks.x86_64-linux.packageCheck'
|