Skip to content

Commit

Permalink
rattler-build 0.11.0, enable GitHub integration for rattler-build (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Feb 20, 2024
1 parent 65afb9d commit 10c8f98
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build conda package
uses: prefix-dev/rattler-build-action@v0.1.1
uses: prefix-dev/rattler-build-action@v0.2.0
```
> [!WARNING]
> Since rattler-build is still experimental and the API can change in minor versions, please pin this action to its minor version, i.e., `prefix-dev/rattler-build-action@v0.1.1`.
> Since rattler-build is still experimental and the API can change in minor versions, please pin this action to its minor version, i.e., `prefix-dev/rattler-build-action@v0.2.0`.

> [!TIP]
> You can use dependabot to automatically update the version of `rattler-build-action`. Add the following to your `.github/dependabot.yml`:
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build conda package
uses: prefix-dev/rattler-build-action@v0.1.1
uses: prefix-dev/rattler-build-action@v0.2.0
with:
# needs to be unique for each matrix entry
artifact-name: package-${{ matrix.target-platform }}
Expand All @@ -117,7 +117,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build conda package
uses: prefix-dev/rattler-build-action@v0.1.1
uses: prefix-dev/rattler-build-action@v0.2.0
- run: |
for pkg in $(find output -type f \( -name "*.conda" -o -name "*.tar.bz2" \) ); do
echo "Uploading ${pkg}"
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
echo '{"my.quetz.server": {"CondaToken": "${{ secrets.QUETZ_API_KEY }}"}}' > "$RATTLER_AUTH_FILE"
echo "RATTLER_AUTH_FILE=$RATTLER_AUTH_FILE" >> "$GITHUB_ENV"
- name: Build conda package
uses: prefix-dev/rattler-build-action@v0.1.1
uses: prefix-dev/rattler-build-action@v0.2.0
with:
build-args: -c conda-forge -c https://my.quetz.server/get/my-channel
```
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
rattler-build-version:
description: Version of rattler-build to use
required: false
default: 'v0.10.0'
default: 'v0.11.0'
recipe-path:
description: Path to the recipe.yaml file
required: true
Expand Down Expand Up @@ -65,11 +65,15 @@ runs:
if: ${{ runner.os != 'Windows' }}
run: |
rattler-build build --recipe "${{ inputs.recipe-path }}" ${{ inputs.build-args }}
env:
RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: 'true'
- name: Build conda package (Windows)
shell: powershell
if: ${{ runner.os == 'Windows' }}
run: |
rattler-build build --recipe "${{ inputs.recipe-path }}" ${{ inputs.build-args }}
env:
RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: 'true'
- name: Upload build artifacts
uses: actions/upload-artifact@v4
if: ${{ inputs.upload-artifact == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion project.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.1.1"
version = "0.2.0"

0 comments on commit 10c8f98

Please sign in to comment.