meta-automata-nix / actions-batch

Time-sharing supercomputer built on GitHub Actions
https://blog.alexellis.io/github-actions-timesharing-supercomputer/
MIT License
1 stars 0 forks source link

Sweep: edit build.yml in the nix branch to mirror this issues description #29

Open ar4s-gh opened 1 week ago

ar4s-gh commented 1 week ago

name: build

on: push: branches:

jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest]

permissions:
  contents: read
  id-token: write

steps:
  - uses: actions/checkout@v2
    with:
      fetch-depth: 1

  - name: Install Nix on Ubuntu
    if: matrix.os == 'ubuntu-latest'
    run: |
      curl -L https://install.determinate.systems/nix | sh -s -- install
      . /home/runner/.nix-profile/etc/profile.d/nix.sh
    shell: bash

  - name: Install Nix on macOS
    if: matrix.os == 'macos-latest'
    run: |
      curl -L https://install.determinate.systems/nix | sh -s -- install
      . /Users/runner/.nix-profile/etc/profile.d/nix.sh
    shell: bash

  - name: Install Nix on Windows
    if: matrix.os == 'windows-latest'
    run: |
      curl -L https://install.determinate.systems/nix | sh -s -- install
      . $env:USERPROFILE\.nix-profile\etc\profile.d\nix.ps1
    shell: pwsh

  - name: Setup Nix Environment Variables on Ubuntu and macOS
    if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
    run: echo "PATH=$PATH:$HOME/.nix-profile/bin" >> $GITHUB_ENV
    shell: bash

  - name: Setup Nix Environment Variables on Windows
    if: matrix.os == 'windows-latest'
    run: echo "PATH=$env:USERPROFILE\.nix-profile\bin" >> $GITHUB_ENV
    shell: pwsh

  - name: Verify Nix Installation
    run: nix --version

  - uses: DeterminateSystems/magic-nix-cache-action@main

  - name: Install cached-nix-shell
    run: |
      nix-env -iA nixpkgs.cached-nix-shell

  - name: Use cached-nix-shell
    run: |
      cached-nix-shell -p nixos-shell --run "nixos-shell --flake github:Mic92/nixos-shell#vm-forward"

  - name: Install Go
    uses: actions/setup-go@v5
    with:
      go-version: 1.20.x

  - name: Make all
    run: make all
sweep-ai[bot] commented 1 week ago
Sweeping

0%
💎 Sweep Pro: You have unlimited Sweep issues

Actions


[!TIP] To recreate the pull request, edit the issue title or description.