I created a GitHub Actions Job with a strategy matrix that creates a set of environment variables.
One of them is machine_architecture
which is either 32 or 64.
In most steps I can use it directly i.e. via ${{ machine_architecture }}
.
But some steps requires strings like 'i386' vs 'x86_64'. Is there an easy way in github actions to create a map-object that I can use in expressions like:
map_object = { 32: "i386", 64: 'x86_64' }
...
${{ map_object[machine_architecture] }}
If not, what is the idiomatic way in github actions to solve that problem?
PS: I am aware, that I can set environment variables in steps, but the problem is, that these variables are only available for the following steps (i.e. not for usage in "run-on:" tag)