Skip to content

Support Nix environment #4

Support Nix environment

Support Nix environment #4

Workflow file for this run

name: "Nix build"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
steps:
- uses: actions/checkout@v4
- name: Log into container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Grab Melee DOL
run: |
docker pull "ghcr.io/doldecomp/build-melee:main"
container_id=$(docker create "ghcr.io/doldecomp/build-melee:main")
docker cp "$container_id":/orig .
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-build
- run: nix-shell --run "echo OK"