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"
247
258 build_image :
269 permissions :
2710 id-token : write
2811 runs-on : ${{ matrix.runner }}
29- needs : [get_asdf_version]
3012 strategy :
3113 matrix :
3214 include :
@@ -36,32 +18,15 @@ jobs:
3618 runner : ubuntu-22.04-arm
3719 steps :
3820 - name : Checkout code
39- uses : actions/checkout@v5
21+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
4022 with :
4123 fetch-depth : 0
4224
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
25+ # use setup-node rather than asdf so that it works multi-arch
26+ - name : setup node
27+ uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
4628 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-
29+ node-version-file : .tool-versions
6530 - name : make install
6631 run : |
6732 make install
0 commit comments