-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.43 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: test
on:
workflow_dispatch:
inputs:
trial_name:
description: "Short name for this trial build, for prefixing the uploaded data and results files. WARNING: without this we will overwrite files in s3://nextstrain-ncov-private and the trees on nextstrain.org/ncov/gisaid..."
required: false
env:
TRIAL_NAME: ${{ github.event.inputs.trial_name }}
jobs:
test-job:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Launch build
run: |
set -x
declare -a config
if [[ "$TRIAL_NAME" ]]; then
config+=(
S3_DST_BUCKET=nextstrain-ncov-private/trial/"$TRIAL_NAME"
deploy_url=s3://nextstrain-staging/
auspice_json_prefix=ncov_gisaid_trial_"$TRIAL_NAME"
)
else
config+=(slack_token="slack_token_here")
fi
echo nextstrain build \
--aws-batch \
--cpus 36 \
--memory 70GiB \
. \
deploy \
upload \
--config "${config[@]}" \
--profile nextstrain_profiles/nextstrain-gisaid \
--set-threads tree=16 \
|& tee build-launch.log
- name: Build info
run: |
echo ${{ github.event.inputs.trial_name=='' && '--> When this job completes, a phylogenetic rebuild will be triggered' || '--> This is a trial build, and as such won\''t trigger a phylogenetic rebuild' }}