Skip to content

Commit 94adbe2

Browse files
committed
run make install
1 parent c14ba96 commit 94adbe2

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build_multi_arch_image.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,29 @@ on:
44
workflow_call:
55

66
jobs:
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:
@@ -21,6 +40,32 @@ jobs:
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

0 commit comments

Comments
 (0)