fix PR build on lInux
This commit is contained in:
parent
252788419b
commit
35ab4c645a
1 changed files with 6 additions and 3 deletions
9
.github/workflows/build_orca.yml
vendored
9
.github/workflows/build_orca.yml
vendored
|
@ -21,6 +21,7 @@ jobs:
|
|||
env:
|
||||
date:
|
||||
ver:
|
||||
ver_pure:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -36,13 +37,14 @@ jobs:
|
|||
- name: Get the version and date on Ubuntu and macOS
|
||||
if: inputs.os != 'windows-latest'
|
||||
run: |
|
||||
ver_pure=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2)
|
||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||
ver="PR${{ github.event.number }}"
|
||||
ver="PR-${{ github.event.number }}"
|
||||
else
|
||||
ver=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2)
|
||||
ver=V$ver
|
||||
ver=V$ver_pure
|
||||
fi
|
||||
echo "ver=$ver" >> $GITHUB_ENV
|
||||
echo "ver_pure=$ver_pure" >> $GITHUB_ENV
|
||||
echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
|
@ -240,6 +242,7 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
./BuildLinux.sh -isr
|
||||
mv ./build/OrcaSlicer_Linux_V${{ env.ver_pure }}.AppImage ./build/OrcaSlicer_Linux_${{ env.ver }}.AppImage
|
||||
chmod +x ./build/OrcaSlicer_Linux_${{ env.ver }}.AppImage
|
||||
|
||||
- name: Upload artifacts Ubuntu
|
||||
|
|
Loading…
Reference in a new issue