mirror of
https://github.com/asherkin/accelerator.git
synced 2025-12-09 03:18:28 +00:00
shorten sha hopefully
This commit is contained in:
parent
04b96113fa
commit
d5edc8880b
29
.github/workflows/build-extension.yml
vendored
29
.github/workflows/build-extension.yml
vendored
@ -53,6 +53,11 @@ jobs:
|
|||||||
fail-on-cache-miss: true
|
fail-on-cache-miss: true
|
||||||
enableCrossOsArchive: true
|
enableCrossOsArchive: true
|
||||||
|
|
||||||
|
# https://stackoverflow.com/a/64195658
|
||||||
|
# i hate github actions
|
||||||
|
- name: Add SHORT_SHA env property with commit short sha
|
||||||
|
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Linux dependencies
|
- name: Linux dependencies
|
||||||
if: startsWith(runner.os, 'Linux')
|
if: startsWith(runner.os, 'Linux')
|
||||||
run: |
|
run: |
|
||||||
@ -97,12 +102,10 @@ jobs:
|
|||||||
mkdir -p build && cd build
|
mkdir -p build && cd build
|
||||||
python ../configure.py --enable-optimize
|
python ../configure.py --enable-optimize
|
||||||
ambuild
|
ambuild
|
||||||
ZIP_FILENAME="${{ env.PROJECT }}-${{ github.sha }}-${{ runner.os }}.zip"
|
ZIP_FILENAME="${{ env.PROJECT }}-${SHORT_SHA}-${{ runner.os }}.zip"
|
||||||
echo ${ZIP_FILENAME}
|
echo ${ZIP_FILENAME}
|
||||||
echo "ZIP_FILENAME=${ZIP_FILENAME}" >> $GITHUB_ENV
|
echo "ZIP_FILENAME=${ZIP_FILENAME}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#- name: Upload package
|
#- name: Upload package
|
||||||
# if: ${{ inputs.upload }}
|
# if: ${{ inputs.upload }}
|
||||||
# uses: actions/upload-artifact@v4
|
# uses: actions/upload-artifact@v4
|
||||||
@ -110,12 +113,12 @@ jobs:
|
|||||||
# name: ${{ inputs.upload-artifact-name }}
|
# name: ${{ inputs.upload-artifact-name }}
|
||||||
# path: build/package
|
# path: build/package
|
||||||
|
|
||||||
#- name: Package release - Windows
|
- name: Package release - Windows
|
||||||
# if: startsWith(${{ inputs.os }}, 'windows-')
|
if: startsWith(${{ inputs.os }}, 'windows')
|
||||||
# working-directory: extension/build/package
|
working-directory: extension/build/package
|
||||||
# run: |
|
run: |
|
||||||
# Compress-Archive -Path * -Destination ${{ env.ZIP_FILENAME }}
|
Compress-Archive -Path * -Destination ${{ env.ZIP_FILENAME }}
|
||||||
# Copy-Item -Path ${{ env.ZIP_FILENAME }} -Destination ${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}
|
Copy-Item -Path ${{ env.ZIP_FILENAME }} -Destination ${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}
|
||||||
|
|
||||||
- name: Package release - Linux
|
- name: Package release - Linux
|
||||||
if: startsWith(${{ inputs.os }}, 'ubuntu-22.04')
|
if: startsWith(${{ inputs.os }}, 'ubuntu-22.04')
|
||||||
@ -128,13 +131,11 @@ jobs:
|
|||||||
- name: Upload release
|
- name: Upload release
|
||||||
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
shell: bash
|
shell: bash
|
||||||
# working-directory: build/package
|
working-directory: build/package
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
ls -la
|
ls "${{ env.ZIP_FILENAME }}" || true
|
||||||
ls -la ./build/package || true
|
|
||||||
ls ./build/package/"${{ env.ZIP_FILENAME }}" || true
|
|
||||||
tree -r || true
|
|
||||||
#run: |
|
#run: |
|
||||||
# echo "Begin upload..."
|
# echo "Begin upload..."
|
||||||
# AUTHORIZATION="$(echo -n '${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}' | base64)"
|
# AUTHORIZATION="$(echo -n '${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}' | base64)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user