Skip to content

Add pixi-lock/create-and-cache and pixi-lock/restore actions.#2

Merged
VeckoTheGecko merged 20 commits intomainfrom
test-me/action-take2
Jan 19, 2026
Merged

Add pixi-lock/create-and-cache and pixi-lock/restore actions.#2
VeckoTheGecko merged 20 commits intomainfrom
test-me/action-take2

Conversation

@VeckoTheGecko
Copy link
Collaborator

@VeckoTheGecko VeckoTheGecko commented Jan 16, 2026

Take 2, followup from #1 .

See changes (including new README) for full details.

Now that its split into two actions with workflow dependencies , we can avoid race conditions.

Action structure:

  • pixi-lock/create-and-cache (run in a separate job - e..g, cache-pixi-lock)
    • takes pixi-version as input
    • checkout
    • creates a cache key of pixi-lock_${{ inputs.pixi-version }}_${{ hashFiles('pixi.toml') }}_${today}
    • checks if there's an existing cache with this key
    • if yes: skip the rest of the steps
    • sets up pixi
    • runs pixi lock
    • saves the lock file under the cache key
    • output:
      • pixi-version and cache-key (the output from this needs to be propagated up to the job level)
  • other jobs
    • pixi-lock/restore restores the pixi.lock file
      • takes in the cache-key from the cache-pixi-lock job
      • calculates a fallback key by calculating the key for the previous day (avoiding edge case of midnight runs)
      • restore the pixi.lock file
    • setup-pixi
      • run with the pixi-version that was output from the cache-pixi-lock job

TODO:

  • Rename repo to pixi-lock instead of create-pixi-lock

@VeckoTheGecko
Copy link
Collaborator Author

Merging for now so that we can test it in action in the Parcels repo. @keewis let me know if there's any updates we can make. I was talking to @wolfv and they're happy to take ownership of it under prefix-dev

@VeckoTheGecko VeckoTheGecko merged commit e484837 into main Jan 19, 2026
8 checks passed
@VeckoTheGecko VeckoTheGecko deleted the test-me/action-take2 branch January 19, 2026 10:16
VeckoTheGecko added a commit to VeckoTheGecko/parcels that referenced this pull request Jan 19, 2026
This is now housed as an action in `Parcels-code/pixi-lock` to be moved into the official Pixi org down the line

Parcels-code/pixi-lock#2
VeckoTheGecko added a commit to VeckoTheGecko/parcels that referenced this pull request Jan 19, 2026
This is now housed as an action in `Parcels-code/pixi-lock` to be moved into the official Pixi org down the line

Parcels-code/pixi-lock#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant