Skip to content

Support Nix environment #7

Support Nix environment

Support Nix environment #7

Workflow file for this run

name: "Nix build"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
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 .
docker rm $container_id
- 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"