try fix linux cicd

This commit is contained in:
SoftFever 2023-04-05 22:03:19 +08:00
parent 7edef28bbc
commit 70a0f5f77d

View file

@ -27,20 +27,29 @@ jobs:
- name: Fix permissions - name: Fix permissions
shell: bash shell: bash
run: sudo chown $USER -R ./ run: sudo chown $USER -R ./
- name: Build deps # - name: Build deps
id: cache_deps # id: cache_deps
uses: actions/cache@v3 # uses: actions/cache@v3
env: # env:
cache-name: ${{ runner.os }}-cache-orcaslicer_deps_x64 # cache-name: ${{ runner.os }}-cache-orcaslicer_deps_x64
with: # with:
path: ${{ github.workspace }}/deps/build/destdir # path: ${{ github.workspace }}/deps/build/destdir
key: build-${{ env.cache-name }} # key: build-${{ env.cache-name }}
- if: ${{ steps.cache_deps.outputs.cache-hit != 'true' }} # - if: ${{ steps.cache_deps.outputs.cache-hit != 'true' }}
name: Build deps # name: Build deps
# working-directory: ${{ github.workspace }}
# continue-on-error: true
# run: ./BuildLinux.sh -dr
- name: Download and extract deps
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
continue-on-error: true run: |
run: ./BuildLinux.sh -dr curl -LJO https://github.com/SoftFever/FileSharing/releases/download/OrcaSlicer_deps_Mar/OrcaSlicer_dep_ubuntu_05-04-2023.tar.gz
tar -zxf OrcaSlicer_dep_ubuntu_05-04-2023.tar.gz -C ${{ github.workspace }}/deps/build
chown -R $(id -u):$(id -g) ${{ github.workspace }}/deps/build/destdir
ls -l ${{ github.workspace }}/deps/build/destdir
rm OrcaSlicer_dep_ubuntu_05-04-2023.tar.gz
- name: Build Studio - name: Build Studio
shell: bash shell: bash