From 48b53b716dac6e1d57f1cc5c405162bac3fb8019 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Wed, 1 Oct 2025 13:58:21 +0200 Subject: [PATCH] workflow: try on ubuntu-latest with custom HOME --- .gitea/workflows/docker.yaml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index 621a5c5..bb156f8 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -5,21 +5,25 @@ on: branches: [ main ] workflow_dispatch: {} + jobs: build-docker: runs-on: ubuntu-latest - container: ghcr.io/cachix/devenv/devenv:latest + env: + HOME: ${{ gitea.workspace }}/.home steps: + - name: Prepare HOME + run: mkdir -p "$HOME" - name: Checkout repository uses: actions/checkout@v3 - # - name: Install nix - # uses: cachix/install-nix-action@v31 - # - name: Setup cachix cache for devenv - # uses: cachix/cachix-action@v16 - # with: - # name: devenv - # - name: Install devenv.sh - # run: nix profile install nixpkgs#devenv + - name: Install nix + uses: cachix/install-nix-action@v31 + - name: Setup cachix cache for devenv + uses: cachix/cachix-action@v16 + with: + name: devenv + - name: Install devenv.sh + run: nix profile install nixpkgs#devenv - name: Build the devenv shell and run any pre-commit hooks run: devenv test