fix: 💚 cleanup file
This commit is contained in:
parent
14062c5c38
commit
951552dd0e
1 changed files with 14 additions and 12 deletions
26
.github/workflows/preview.yaml
vendored
26
.github/workflows/preview.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue