File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 44 workflow_call :
55
66jobs :
7+ get_asdf_version :
8+ runs-on : ubuntu-22.04
9+ outputs :
10+ asdf_version : ${{ steps.asdf-version.outputs.version }}
11+ tag_format : ${{ steps.load-config.outputs.TAG_FORMAT }}
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
15+
16+ - name : Get asdf version
17+ id : asdf-version
18+ run : echo "version=$(awk '!/^#/ && NF {print $1; exit}' .tool-versions.asdf)" >> "$GITHUB_OUTPUT"
19+ - name : Load config value
20+ id : load-config
21+ run : |
22+ TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
23+ echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
24+
725 build_image :
826 permissions :
927 id-token : write
1028 runs-on : ${{ matrix.runner }}
29+ needs : [get_asdf_version]
1130 strategy :
1231 matrix :
1332 include :
2140 with :
2241 fetch-depth : 0
2342
43+ # using git commit sha for version of action to ensure we have stable version
44+ - name : Install asdf
45+ uses : asdf-vm/actions/setup@b7bcd026f18772e44fe1026d729e1611cc435d47
46+ with :
47+ asdf_version : ${{ needs.get_asdf_version.outputs.asdf_version }}
48+
49+ - name : Cache asdf
50+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
51+ with :
52+ path : |
53+ ~/.asdf
54+ key : ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
55+ restore-keys : |
56+ ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
57+
58+ - name : Install asdf dependencies in .tool-versions
59+ uses : asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47
60+ with :
61+ asdf_version : ${{ needs.get_asdf_version.outputs.asdf_version }}
62+ env :
63+ PYTHON_CONFIGURE_OPTS : --enable-shared
64+
65+ - name : make install
66+ run : |
67+ make install
68+
2469 - name : Build container
2570 run : |
2671 make build-base-image
You can’t perform that action at this time.
0 commit comments