Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml devtools_test

- name: Check unit test code coverage
if: matrix.runner == 'ubuntu-latest' && matrix.environment == 'r44'
if: matrix.platform == 'linux-64' && matrix.environment == 'r44'
run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml codecov

#- name: Run R CMD CHECK
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/conda_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- id: latest-version
name: Get latest version
if: ${{ github.event.inputs.version }} == "latest"
if: ${{ github.event.inputs.version == 'latest' }}
uses: pozetroninc/github-action-get-latest-release@v0.8.0
with:
repository: ${{ github.repository }}
Expand Down Expand Up @@ -82,30 +82,32 @@ jobs:
sed -i "s/BUILD_PLACEHOLDER/${build}/g" /tmp/recipe/recipe.yaml

- name: Setup up docker buildx
if: ${{ matrix.runner == 'ubuntu-latest' }}
if: ${{ contains(matrix.platform, 'linux' }}
uses: docker/setup-buildx-action@v3

- name: Build and export docker containers
if: ${{ matrix.runner == 'ubuntu-latest' }}
if: ${{ contains(matrix.platform, 'linux') }}
uses: docker/build-push-action@v6
with:
load: true
file: .github/rattler-build_container.df
tags: rattler-build:latest

- name: Build conda packages
- name: Build conda packages (docker)
if: ${{ contains(matrix.platform, 'linux') }}
run: |
if [[ '${{ matrix.platform }}' == 'linux-64' ]]; then
docker run --rm --volume /tmp:/tmp \
--volume /etc/passwd:/etc/passwd:ro \
--volume /etc/group:/etc/group:ro \
--volume $(pwd) --workdir $(pwd) \
--user $(id -u) rattler-build \
rattler-build build -c dnachun -c conda-forge -c bioconda \
--output-dir /tmp/rattler-build --recipe-dir /tmp/recipe
else
rattler-build build -c dnachun -c conda-forge -c bioconda --output-dir /tmp/rattler-build --recipe-dir /tmp/recipe
fi

- name: Build conda packages
if: ${{ contains(matrix.platform, 'osx') }}
shell: pixi exec --spec rattler-build -- bash -e {0}
run: rattler-build build -c dnachun -c conda-forge -c bioconda --output-dir /tmp/rattler-build --recipe-dir /tmp/recipe

- name: Upload package
shell: pixi exec --spec rattler-build -- bash -e {0}
Expand Down