Skip to content

expand 🤼‍♂️ #616

expand 🤼‍♂️

expand 🤼‍♂️ #616

Workflow file for this run

on:
push:
branches:
- main
pull_request:
jobs:
check:
strategy:
fail-fast: true
matrix:
include:
- system: x86_64-linux
runs-on: ubuntu-latest
- system: aarch64-darwin
runs-on: [macOS, ARM64]
name: ${{ matrix.system }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: Free space on GitHub-hosted Runner
if: runner.environment == 'github-hosted'
run: |
# 13.5GiB
sudo rm -rf /usr/local/lib/android
# 8.6GiB
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
# 4.7GiB
sudo rm -rf /usr/local/.ghcup
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v30
with:
install_url: https://releases.nixos.org/nix/nix-2.24.9/install
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: enzime
useDaemon: ${{ runner.environment == 'github-hosted' }}
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
skipAddingSubstituter: ${{ runner.environment == 'self-hosted' }}
- name: nix run .#add-subflakes-to-store
run: nix-shell --pure -I nixpkgs=flake:nixpkgs -p '(import ./shell.nix { }).packages.${builtins.currentSystem}.add-subflakes-to-store' --command add-subflakes-to-store
- run: nix run --print-build-logs .#check -- --print-build-logs
build:
timeout-minutes: 7200
strategy:
fail-fast: true
matrix:
include:
- name: chi
output: darwinConfigurations.chi.system
runs-on: [macOS, ARM64]
- name: hermes-macos
output: darwinConfigurations.hermes-macos.system
runs-on: [macOS, ARM64]
- name: hermes-nixos
output: nixosConfigurations.hermes-nixos.config.system.build.toplevel
runs-on: ARM64
- name: phi-nixos
output: nixosConfigurations.phi-nixos.config.system.build.toplevel
runs-on: ubuntu-latest
- name: sigma
output: nixosConfigurations.sigma.config.system.build.toplevel
runs-on: ubuntu-latest
- name: echo
output: darwinConfigurations.echo.system
runs-on: [macOS, ARM64]
- name: eris
output: nixosConfigurations.eris.config.system.build.toplevel
runs-on: ubuntu-latest
- name: aether
output: nixosConfigurations.aether.config.system.build.toplevel
runs-on: ARM64
name: ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
needs: check
steps:
- name: Free space on GitHub-hosted Runner
if: runner.environment == 'github-hosted'
run: |
# 13.5GiB
sudo rm -rf /usr/local/lib/android
# 8.6GiB
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
# 4.7GiB
sudo rm -rf /usr/local/.ghcup
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v30
with:
install_url: https://releases.nixos.org/nix/nix-2.24.9/install
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: enzime
useDaemon: ${{ runner.environment == 'github-hosted' }}
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
skipAddingSubstituter: ${{ runner.environment == 'self-hosted' }}
- name: nix run .#add-subflakes-to-store
run: nix-shell --pure -I nixpkgs=flake:nixpkgs -p '(import ./shell.nix { }).packages.${builtins.currentSystem}.add-subflakes-to-store' --command add-subflakes-to-store
- run: nix build --print-build-logs .#${{ matrix.output }}