-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:jens-ox/setup-pixi into jens-ox/tsc…
…onfig-setup
- Loading branch information
Showing
6 changed files
with
51 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dist | ||
pnpm-lock.yaml | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m | |
```yml | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.24.1 | ||
pixi-version: v0.28.1 | ||
cache: true | ||
auth-host: prefix.dev | ||
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} | ||
|
@@ -229,6 +229,25 @@ If you want to use PowerShell, you need to specify `-Command` as well. | |
> There are some custom shells provided by GitHub that have slightly different behavior, see [`jobs.<job_id>.steps[*].shell`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell) in the documentation. | ||
> See the [official documentation](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#custom-shell) and [ADR 0277](https://github.com/actions/runner/blob/main/docs/adrs/0277-run-action-shell-options.md) for more information about how the `shell:` input works in GitHub Actions. | ||
|
||
#### One-off shell wrapper using `pixi exec` | ||
|
||
With `pixi exec`, you can also run a one-off command inside a temporary pixi environment. | ||
|
||
```yml | ||
- run: | # everything here will be run inside of the temporary pixi environment | ||
zstd --version | ||
shell: pixi exec --spec zstd -- bash -e {0} | ||
``` | ||
|
||
```yml | ||
- run: | # everything here will be run inside of the temporary pixi environment | ||
import ruamel.yaml | ||
# ... | ||
shell: pixi exec --spec python=3.11.* --spec ruamel.yaml -- python {0} | ||
``` | ||
|
||
See [here](https://pixi.sh/latest/reference/cli#exec) for more information about `pixi exec`. | ||
|
||
### Environment activation | ||
|
||
Instead of using a custom shell wrapper, you can also make all pixi-installed binaries available to subsequent steps by "activating" the installed environment in the currently running job. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.