From 951552dd0eede1f8f255aeaf5d34a13ff0c7bfb7 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 9 Oct 2023 17:39:54 -0700 Subject: [PATCH] fix: :green_heart: cleanup file --- .github/workflows/preview.yaml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index d0178d917..4678ef0ef 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -53,31 +53,25 @@ jobs: uses: actions/checkout@v3 - name: Set up Python + if: matrix.os != 'macos-latest' || matrix.arch != 'arm64' uses: actions/setup-python@v4 with: python-version: "3.10.8" - name: Install Pyinstaller + if: matrix.os != 'macos-latest' || matrix.arch != 'arm64' run: | pip install pyinstaller - name: Install Dependencies + if: matrix.os != 'macos-latest' || matrix.arch != 'arm64' run: | pip install -r server/requirements.txt - name: Build PyInstaller Executable + if: matrix.os != 'macos-latest' || matrix.arch != 'arm64' run: pyinstaller run.spec - - name: Set permissions - run: | - chmod 777 dist/run - - # 1.25 Upload the binary as an artifact - - uses: actions/upload-artifact@v2 - with: - name: ${{ matrix.os }}Binary - path: extension/exe/run - # 1.5 Place the binary in extension/exe directory - name: Make sure extension/exe directory exists run: | @@ -86,7 +80,7 @@ jobs: - name: Copy binary to extension (non-Windows) run: | cp dist/run extension/exe/run - if: matrix.os != 'windows-latest' + if: matrix.os != 'windows-latest' && (matrix.os != 'macos-latest' || matrix.arch != 'arm64') - name: Copy binary to extension (Windows) run: | @@ -103,8 +97,9 @@ jobs: if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' run: curl -o extension/exe/run https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/run + + # 1.8 Set permissions and check binary - name: Set permissions - if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' run: | chmod 777 extension/exe/run @@ -113,6 +108,13 @@ jobs: run: | file extension/exe/run + # 1.9 Upload the binary as an artifact + - uses: actions/upload-artifact@v2 + if: matrix.os != 'macos-latest' || matrix.arch != 'arm64' + with: + name: ${{ matrix.os }}Binary + path: extension/exe/run + # 2. Install npm dependencies - name: Use Node.js 19.0.0 uses: actions/setup-node@v3