diff --git a/.github/workflows/package-mac.yml b/.github/workflows/package-mac.yml index fd81806..60f6441 100644 --- a/.github/workflows/package-mac.yml +++ b/.github/workflows/package-mac.yml @@ -2,10 +2,10 @@ name: Package Tauri App and Python Server for MacOS on: push: branches: - - main - pull_request: - branches: - - main + - AutoSubsV1 + # pull_request: + # branches: + # - main jobs: build: @@ -67,7 +67,6 @@ jobs: cd Mac-Server python3 -m venv venv source venv/bin/activate - pip install --upgrade pip setuptools wheel pip install -r requirements.txt pyinstaller transcription-server.spec --noconfirm deactivate diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml new file mode 100644 index 0000000..996703b --- /dev/null +++ b/.github/workflows/python-test.yml @@ -0,0 +1,40 @@ +name: Package Tauri App and Python Server for MacOS +on: + push: + branches: + - main + # pull_request: + # branches: + # - main + +jobs: + build: + runs-on: macos-14 + + steps: + - name: Checkout AutoSubs Repo Code + uses: actions/checkout@v4 + + - name: Package Python Server + run: | + cd Mac-Server + python3 -m venv venv + source venv/bin/activate + pip install -r requirements.txt + pyinstaller transcription-server.spec --noconfirm + deactivate + + - name: Get Latest Release Upload URL + id: get_upload_url + run: | + response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/releases/latest) + echo "upload_url=$(echo $response | jq -r .upload_url | sed -e 's/{?name,label}//')" >> $GITHUB_ENV + + - name: Upload to Latest Release + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ env.upload_url }} + asset_path: Mac-Server/Transcription-Server/transcription-server + asset_name: transcription-server + asset_content_type: application/octet-stream \ No newline at end of file diff --git a/Mac-Server/requirements.txt b/Mac-Server/requirements.txt index ea0d68d..a345587 100644 --- a/Mac-Server/requirements.txt +++ b/Mac-Server/requirements.txt @@ -1,5 +1,5 @@ -torch -torchaudio +torch=2.5.1 +torchaudio=2.5.1 huggingface-hub fastapi uvicorn