Skip to content

Commit 5fece4d

Browse files
Refactor build.yml to improve clarity in setting architecture and build date
1 parent 0807ef4 commit 5fece4d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v3
1717

18-
- name: Set release tag and build date
18+
- name: Set architecture and build date
1919
run: |
2020
echo "RELEASE_TAG=python-${{ github.event.inputs.python_version }}-linux" >> $GITHUB_ENV
21-
echo "RELEASE_TAG=python-${{ github.event.inputs.python_version }}-linux" >> $GITHUB_ENV
21+
echo "BUILD_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
22+
echo "ARCHITECTURE=$(uname -m)" >> $GITHUB_ENV
2223
2324
- name: Install build dependencies
2425
run: |
@@ -98,7 +99,7 @@ jobs:
9899
- Python Version: ${{ github.event.inputs.python_version }}
99100
- Optimization Level: 2 (full optimizations with LTO)
100101
- With Pip/Setuptools/Wheel: Yes
101-
- Architecture: $(uname -m)
102+
- Architecture: ${{ env.ARCHITECTURE }}
102103
- Build Date: ${{ env.BUILD_DATE }}
103104
- Built by: anubhavkrishna1
104105

0 commit comments

Comments
 (0)