Skip to content

Commit

Permalink
Add ingest build step [#89]
Browse files Browse the repository at this point in the history
  • Loading branch information
genehack committed May 31, 2024
1 parent 6d8f901 commit ac53845
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/pathogen-repo-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,30 @@ jobs:
with:
runtime: ${{ matrix.runtime }}

ingest:
name: ingest (${{ matrix.runtime }})
needs: [configuration, build]
strategy:
fail-fast: false
matrix:
runtime: ${{ fromJSON(needs.configuration.outputs.runtimes) }}
runs-on: ubuntu-latest
continue-on-error: ${{ inputs.continue-on-error }}
steps:
- name: Run ingest
run: |
if [[ -f nextstrain-pathogen.yaml && -f ingest/Snakefile && -f ingest/build-configs/ci/config.yaml ]]; then
nextstrain build ingest --config build-configs/ci/config.yaml ${{ inputs.build-args }}
else
echo "Skipping ingest build due to one or more missing files."
fi
- run: nextstrain build . ${{ inputs.build-args }}

- if: always()
- name: Upload ingest artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}-${{ matrix.runtime }}
name: ingest-${{ inputs.artifact-name }}-${{ matrix.runtime }}
path: |
auspice/
results/
benchmarks/
logs/
Expand Down

0 comments on commit ac53845

Please sign in to comment.