File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8585 - name : Check Poetry .lock
8686 run : poetry check --lock
8787
88+ - name : Set baseline x86-64 compiler flags
89+ if : runner.os == 'Linux'
90+ run : |
91+ echo "CFLAGS=-march=x86-64" >> $GITHUB_ENV
92+ echo "CXXFLAGS=-march=x86-64" >> $GITHUB_ENV
93+
8894 - name : Install dependencies
8995 run : |
9096 if [ "${{ inputs.upgrade-deps}}" = "true" ]; then
Original file line number Diff line number Diff line change 1111env :
1212 POETRY_VERSION : 1.8.2
1313 PYTHON_VERSION : " 3.11"
14+ CFLAGS : " -march=x86-64"
15+ CXXFLAGS : " -march=x86-64"
1416
1517jobs :
1618 lint :
2830 id : full-python-version
2931 run : echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT
3032
33+ - name : Get runner architecture
34+ id : runner-arch
35+ run : echo "arch=$(uname -m)" >> $GITHUB_OUTPUT
36+
3137 - name : Bootstrap poetry
3238 run : |
3339 curl -sSL https://install.python-poetry.org | POETRY_VERSION=${{ env.POETRY_VERSION }} python -
4147 id : cache
4248 with :
4349 path : .venv
44- key : venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
50+ key : venv-${{ runner.os }}-${{ steps.runner-arch.outputs.arch }}-${{ steps. full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
4551
4652 - name : Ensure cache is healthy
4753 if : steps.cache.outputs.cache-hit == 'true'
You can’t perform that action at this time.
0 commit comments