Skip to content

Commit 0a5dbc4

Browse files
author
Yadan Wei
committed
change order
Signed-off-by: Yadan Wei <yadanwei@amazon.com>
1 parent 5c8fdbf commit 0a5dbc4

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed

.github/workflows/vllm-release-sample.yml

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,6 @@ env:
1919

2020

2121
jobs:
22-
load-config:
23-
runs-on: ubuntu-latest
24-
outputs:
25-
ec2-config: ${{ steps.load-configs.outputs.ec2-config }}
26-
sagemaker-config: ${{ steps.load-configs.outputs.sagemaker-config }}
27-
rayserve-config: ${{ steps.load-configs.outputs.rayserve-config }}
28-
steps:
29-
- name: Checkout code
30-
uses: actions/checkout@v5
31-
32-
- name: Load configuration files
33-
id: load-configs
34-
run: |
35-
# Install yq for YAML parsing
36-
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
37-
sudo chmod +x /usr/local/bin/yq
38-
39-
# Load and output configs as JSON for easy parsing in other jobs
40-
# Using multiline output format to handle special characters
41-
{
42-
echo "ec2-config<<EOF"
43-
yq eval -o=json '.' ${{ env.EC2_CONFIG }}
44-
echo "EOF"
45-
} >> $GITHUB_OUTPUT
46-
47-
{
48-
echo "sagemaker-config<<EOF"
49-
yq eval -o=json '.' ${{ env.SAGEMAKER_CONFIG }}
50-
echo "EOF"
51-
} >> $GITHUB_OUTPUT
52-
53-
{
54-
echo "rayserve-config<<EOF"
55-
yq eval -o=json '.' ${{ env.RAYSERVE_CONFIG }}
56-
echo "EOF"
57-
} >> $GITHUB_OUTPUT
58-
5922
gatekeeper:
6023
runs-on: ubuntu-latest
6124
concurrency:
@@ -72,7 +35,7 @@ jobs:
7235
uses: ./.github/actions/pr-permission-gate
7336

7437
check-changes:
75-
needs: [gatekeeper, load-config]
38+
needs: [gatekeeper]
7639
if: success()
7740
runs-on: ubuntu-latest
7841
concurrency:
@@ -109,6 +72,45 @@ jobs:
10972
test-change:
11073
- "test/vllm/**"
11174
75+
load-config:
76+
needs: [check-changes]
77+
if: success()
78+
runs-on: ubuntu-latest
79+
outputs:
80+
ec2-config: ${{ steps.load-configs.outputs.ec2-config }}
81+
sagemaker-config: ${{ steps.load-configs.outputs.sagemaker-config }}
82+
rayserve-config: ${{ steps.load-configs.outputs.rayserve-config }}
83+
steps:
84+
- name: Checkout code
85+
uses: actions/checkout@v5
86+
87+
- name: Load configuration files
88+
id: load-configs
89+
run: |
90+
# Install yq for YAML parsing
91+
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
92+
sudo chmod +x /usr/local/bin/yq
93+
94+
# Load and output configs as JSON for easy parsing in other jobs
95+
# Using multiline output format to handle special characters
96+
{
97+
echo "ec2-config<<EOF"
98+
yq eval -o=json '.' ${{ env.EC2_CONFIG }}
99+
echo "EOF"
100+
} >> $GITHUB_OUTPUT
101+
102+
{
103+
echo "sagemaker-config<<EOF"
104+
yq eval -o=json '.' ${{ env.SAGEMAKER_CONFIG }}
105+
echo "EOF"
106+
} >> $GITHUB_OUTPUT
107+
108+
{
109+
echo "rayserve-config<<EOF"
110+
yq eval -o=json '.' ${{ env.RAYSERVE_CONFIG }}
111+
echo "EOF"
112+
} >> $GITHUB_OUTPUT
113+
112114
# ==============================================
113115
# =============== vLLM EC2 jobs ================
114116
# ==============================================

0 commit comments

Comments
 (0)