@@ -5,8 +5,6 @@ name: build wheels
55# Devs should check out their fork, add a tag to the last master commit on their fork, and run the release off of their fork on the added tag to ensure wheels will be built correctly.
66on :
77 workflow_dispatch :
8- tags :
9- - ' v*.*.*'
108 inputs :
119 release_version :
1210 description : ' The release version to use (e.g., v1.2.3)'
3937 type : string
4038
4139jobs :
42- get-version :
43- uses : ./.github/workflows/get_semantic_release_version.yml
44- with :
45- custom_version : ${{ github.event.inputs.release_version }}
46- token : ${{ github.event.inputs.token }}
47-
4840 build-python-wheel :
4941 name : Build wheels
5042 runs-on : ubuntu-latest
@@ -111,30 +103,34 @@ jobs:
111103 build-docker-images :
112104 name : Build Docker images
113105 runs-on : ubuntu-latest
114- needs : get-version
115106 strategy :
116107 matrix :
117108 component : [ feature-server, feature-server-java, feature-transformation-server, feast-operator ]
118109 env :
119110 REGISTRY : feastdev
120111 steps :
112+ - id : get-version
113+ uses : ./.github/workflows/get_semantic_release_version.yml
114+ with :
115+ custom_version : ${{ github.event.inputs.custom_version }}
116+ token : ${{ github.event.inputs.token }}
121117 - uses : actions/checkout@v4
122118 - name : Set up QEMU
123119 uses : docker/setup-qemu-action@v1
124120 - name : Set up Docker Buildx
125121 uses : docker/setup-buildx-action@v1
126122 - name : Build image
127123 run : |
128- VERSION_WITHOUT_PREFIX= ${{ needs .get-version.outputs.version_without_prefix }}
129- RELEASE_VERSION= ${{ needs .get-version.outputs.release_version }}
130- HIGHEST_SEMVER_TAG =${{ needs .get-version.outputs.highest_semver_tag }}
124+ VERSION_WITHOUT_PREFIX: ${{ steps .get-version.outputs.version_without_prefix }}
125+ HIGHEST_SEMVER_TAG: ${{ steps .get-version.outputs.highest_semver_tag }}
126+ RELEASE_VERSION =${{ steps .get-version.outputs.release_version }}
131127 echo "Building docker image for ${{ matrix.component }} with version $VERSION_WITHOUT_PREFIX and release version $RELEASE_VERSION"
132128 make build-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${VERSION_WITHOUT_PREFIX}
133129
134130 verify-python-wheels :
135131 name : Verify Python wheels
136132 runs-on : ${{ matrix.os }}
137- needs : [ build-python-wheel, build-source-distribution, get-version ]
133+ needs : [ build-python-wheel, build-source-distribution ]
138134 strategy :
139135 matrix :
140136 os : [ ubuntu-latest, macos-13 ]
@@ -153,8 +149,12 @@ jobs:
153149 else
154150 echo "Succeeded!"
155151 fi
156- VERSION_WITHOUT_PREFIX : ${{ needs.get-version.outputs.version_without_prefix }}
157152 steps :
153+ - id : get-version
154+ uses : ./.github/workflows/get_semantic_release_version.yml
155+ with :
156+ custom_version : ${{ github.event.inputs.custom_version }}
157+ token : ${{ github.event.inputs.token }}
158158 - name : Setup Python
159159 id : setup-python
160160 uses : actions/setup-python@v5
@@ -185,6 +185,8 @@ jobs:
185185 run : pip install dist/*tar.gz
186186 # Validate that the feast version installed is not development and is the correct version of the tag we ran it off of.
187187 - name : Validate Feast Version
188+ env :
189+ VERSION_WITHOUT_PREFIX : ${{ steps.get-version.outputs.version_without_prefix }}
188190 run : |
189191 feast version
190192 if ! VERSION_OUTPUT=$(feast version); then
0 commit comments