Skip to content

Commit 9a0c6be

Browse files
committed
Get fast version is separate initial step
1 parent 506d818 commit 9a0c6be

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/build_runtime_images.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,23 @@ on:
1111
default: false
1212

1313
jobs:
14-
build:
14+
get-latest-version:
1515
runs-on: ubuntu-latest
16+
outputs:
17+
fast-version: ${{ steps.get.outputs.result }}
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
22+
- name: Get latest FAST version
23+
id: get
24+
run: |
25+
FAST_VERSION=$(python3 get_latest_fast_version.py)
26+
echo "result=$FAST_VERSION" >> $GITHUB_OUTPUT
27+
28+
build-test-deploy:
29+
runs-on: ubuntu-latest
30+
needs: get-latest-version
1631
strategy:
1732
fail-fast: false
1833
matrix:
@@ -26,7 +41,7 @@ jobs:
2641

2742
- name: Set variables
2843
run: |
29-
FAST_VERSION=$(python3 get_latest_fast_version.py)
44+
FAST_VERSION=${{ needs.get-latest-version.outputs.fast-version }}
3045
echo "FAST_VERSION=$FAST_VERSION" >> "$GITHUB_ENV"
3146
if [ "${{ matrix.vgl }}" = "true" ]; then
3247
VGL_TAG=-vgl
@@ -42,6 +57,7 @@ jobs:
4257
IMAGE_FILENAME=fast-${FAST_VERSION}-${{ matrix.type }}-${{ matrix.opencl }}-${X_TAG}${VGL_TAG}.tar
4358
echo "IMAGE_NAME=$IMAGE_NAME" >> "$GITHUB_ENV"
4459
echo "IMAGE_FILENAME=$IMAGE_FILENAME" >> "$GITHUB_ENV"
60+
4561
- name: Build
4662
run: |
4763
docker build . -f runtime.Dockerfile \
@@ -59,9 +75,9 @@ jobs:
5975
key: test-dataset
6076
enableCrossOsArchive: true
6177

62-
- name: Test
78+
- name: Test docker image
6379
# Intel OpenCL does not work in github action
64-
if: ${{ matrix.opencl }} != "intel"
80+
if: ${{ matrix.opencl != "intel" }}
6581
run: |
6682
if [ "${{ matrix.opencl }}" = "intel" ]; then
6783
docker run --rm -v ~/FAST/data/:/root/FAST/data/ --device=/dev/dri $IMAGE_NAME

0 commit comments

Comments
 (0)