mirror of
https://github.com/asherkin/accelerator.git
synced 2025-12-07 10:28:29 +00:00
SM_VERSION scraping
This commit is contained in:
parent
3f8e2159d9
commit
a05a9308f0
10
.github/workflows/build-extension.yml
vendored
10
.github/workflows/build-extension.yml
vendored
@ -60,7 +60,13 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
|
||||
|
||||
|
||||
- name: scrape version and export to env
|
||||
shell: bash
|
||||
run: |
|
||||
echo "SM_VERSION=`cat ./extension/version.h | grep "#define SM_VERSION" | cut -f 2 -d '"'`" >> $GITHUB_ENV
|
||||
echo ${{ env.SM_VERSION }}
|
||||
|
||||
- name: Linux dependencies
|
||||
if: startsWith(runner.os, 'Linux')
|
||||
run: |
|
||||
@ -105,7 +111,7 @@ jobs:
|
||||
mkdir -p build && cd build
|
||||
python ../configure.py --enable-optimize
|
||||
ambuild
|
||||
ZIP_FILENAME="${{ env.PROJECT }}-${{ env.SHORT_SHA }}-${{ env.PROJECT_OS }}.zip"
|
||||
ZIP_FILENAME="${{ env.SM_VERSION }}-${{ env.SHORT_SHA }}-${{ env.PROJECT }}_${{ env.PROJECT_OS }}.zip"
|
||||
echo ${ZIP_FILENAME}
|
||||
echo "ZIP_FILENAME=${ZIP_FILENAME}" >> $GITHUB_ENV
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user