Skip to content

newwest runner. pared down to achieve success for my tag #47

newwest runner. pared down to achieve success for my tag

newwest runner. pared down to achieve success for my tag #47

Workflow file for this run

name: Haskell CI with Nix Flake
on:
workflow_dispatch:
pull_request:
branches: [main, unstable, generators]
push:
branches: [main, unstable, generators]
schedule:
- cron: '0 0 * * 0' # Weekly to maintain cache
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout code
- name: Setup Nix with Flakes support
uses: cachix/install-nix-action@v15
with:
# Removed install_url to rely on the action's default installation method
extra_nix_config: |
experimental-features = nix-command flakes
- name: Build and run with Nix Flake
run: |
nix build .#pelotero-engine:exe:generators --accept-flake-config
./result/bin/generators
nix build .#pelotero-engine:exe:playground --accept-flake-config
nix build .#pelotero-engine:exe:head2head --accept-flake-config
nix build .#pelotero-engine:exe:league --accept-flake-config
nix build .#pelotero-engine:exe:test_adt --accept-flake-config
nix build .#pelotero-engine:exe:official --accept-flake-config
nix build .#pelotero-engine:exe:autodraft --accept-flake-config
nix build .#pelotero-engine:exe:fetchStats --accept-flake-config
nix build .#pelotero-engine:exe:roster --accept-flake-config
# - name: Run Generator
# run: ./result/bin/generators
# - name: Run Roster
# run: |
# ./result/bin/roster 2024
# Optional: Cache Nix store to speed up builds
- uses: actions/cache@v2
with:
path: /nix/store
key: ${{ runner.os }}-nix-${{ hashFiles('flake.lock') }}
restore-keys: |
${{ runner.os }}-nix-