File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 1111 default : false
1212
1313jobs :
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 :
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
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 \
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
You can’t perform that action at this time.
0 commit comments