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

setup-nextstrain-cli: Use Docker runtime on Windows with linux/amd64 containers #75

Closed
wants to merge 1 commit into from
Closed
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
11 changes: 7 additions & 4 deletions actions/setup-nextstrain-cli/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ inputs:
description: >-
Nextstrain runtime to configure and set as the default, as a string
understood by `nextstrain setup`. Defaults to "docker" on Linux and
"conda" on macOS (where, on GitHub Actions, Docker isn't supported). On
Windows, no runtime is set up by default: GitHub Actions runners can't run
Linux containers via WSL2 and our Conda runtime doesn't support Windows.
Windows and "conda" on macOS (where, on GitHub Actions, Docker isn't
supported).
type: string
default: ${{ runner.os == 'Linux' && 'docker' || runner.os == 'macOS' && 'conda' || '' }}
default: ${{ runner.os == 'macOS' && 'conda' || 'docker' }}
required: false

# XXX TODO: Remove this in coordination with existing callers. Callers must
Expand Down Expand Up @@ -81,6 +80,10 @@ runs:
DESTINATION: ${{ runner.temp }}/nextstrain-cli
shell: bash

- if: inputs.runtime == 'docker'
run: echo "DOCKER_DEFAULT_PLATFORM=linux/amd64" | tee -a "$GITHUB_ENV"
shell: bash

- run: nextstrain version
shell: bash

Expand Down
Loading