Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rattler-build 0.11.0, enable GitHub integration for rattler-build #6

Merged
merged 4 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"