mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
simplify mac download
This commit is contained in:
17
.github/workflows/build_orca.yml
vendored
17
.github/workflows/build_orca.yml
vendored
@@ -130,27 +130,20 @@ jobs:
|
|||||||
name: OrcaSlicer_Mac_bundle_${{ inputs.arch }}_${{ github.sha }}
|
name: OrcaSlicer_Mac_bundle_${{ inputs.arch }}_${{ github.sha }}
|
||||||
path: ${{ github.workspace }}/OrcaSlicer_Mac_bundle_${{ inputs.arch }}_${{ github.sha }}.tar.gz
|
path: ${{ github.workspace }}/OrcaSlicer_Mac_bundle_${{ inputs.arch }}_${{ github.sha }}.tar.gz
|
||||||
|
|
||||||
- name: Download macOS arm64 app bundle
|
- name: Download macOS app bundles
|
||||||
if: runner.os == 'macOS' && inputs.macos-combine-only
|
if: runner.os == 'macOS' && inputs.macos-combine-only
|
||||||
uses: actions/download-artifact@v7
|
uses: actions/download-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: OrcaSlicer_Mac_bundle_arm64_${{ github.sha }}
|
pattern: OrcaSlicer_Mac_bundle_*_${{ github.sha }}
|
||||||
path: ${{ github.workspace }}/mac_bundles/arm64
|
path: ${{ github.workspace }}/mac_bundles
|
||||||
|
|
||||||
- name: Download macOS x86_64 app bundle
|
|
||||||
if: runner.os == 'macOS' && inputs.macos-combine-only
|
|
||||||
uses: actions/download-artifact@v7
|
|
||||||
with:
|
|
||||||
name: OrcaSlicer_Mac_bundle_x86_64_${{ github.sha }}
|
|
||||||
path: ${{ github.workspace }}/mac_bundles/x86_64
|
|
||||||
|
|
||||||
- name: Extract macOS app bundles
|
- name: Extract macOS app bundles
|
||||||
if: runner.os == 'macOS' && inputs.macos-combine-only
|
if: runner.os == 'macOS' && inputs.macos-combine-only
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build/arm64 build/x86_64
|
mkdir -p build/arm64 build/x86_64
|
||||||
arm_bundle=$(find "${{ github.workspace }}/mac_bundles/arm64" -name '*.tar.gz' -print -quit)
|
arm_bundle=$(find "${{ github.workspace }}/mac_bundles/OrcaSlicer_Mac_bundle_arm64_${{ github.sha }}" -name '*.tar.gz' -print -quit)
|
||||||
x86_bundle=$(find "${{ github.workspace }}/mac_bundles/x86_64" -name '*.tar.gz' -print -quit)
|
x86_bundle=$(find "${{ github.workspace }}/mac_bundles/OrcaSlicer_Mac_bundle_x86_64_${{ github.sha }}" -name '*.tar.gz' -print -quit)
|
||||||
tar -xzvf "$arm_bundle" -C "${{ github.workspace }}/build/arm64"
|
tar -xzvf "$arm_bundle" -C "${{ github.workspace }}/build/arm64"
|
||||||
tar -xzvf "$x86_bundle" -C "${{ github.workspace }}/build/x86_64"
|
tar -xzvf "$x86_bundle" -C "${{ github.workspace }}/build/x86_64"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user