diff --git a/.github/workflows/apk-build-official.yml b/.github/workflows/apk-build.yml similarity index 97% rename from .github/workflows/apk-build-official.yml rename to .github/workflows/apk-build.yml index 163fc3a..251ef4b 100644 --- a/.github/workflows/apk-build-official.yml +++ b/.github/workflows/apk-build.yml @@ -5,7 +5,7 @@ on: branches: - flet-build paths: - - '.github/workflows/apk-build-official.yml' + - '.github/workflows/apk-build.yml' # Allows you to run this workflow manually from the Actions tab of the repository diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml new file mode 100644 index 0000000..97ba15d --- /dev/null +++ b/.github/workflows/windows-build.yml @@ -0,0 +1,60 @@ +name: Windows Build + +on: + push: + branches: + - flet-build + paths: + - '.github/workflows/windows-build.yml' + + # Allows you to run this workflow manually from the Actions tab of the repository + workflow_dispatch: + +env: + # https://flet.dev/docs/publish#versioning + BUILD_NUMBER: 1 + BUILD_VERSION: 1.0.0 + PYTHON_VERSION: 3.12.2 + FLUTTER_VERSION: 3.24.0 + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Install Python Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Setup Flutter ${{ env.FLUTTER_VERSION }} + uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ env.FLUTTER_VERSION }} + + - name: Flet Build Windows + run: | + flutter config --no-analytics + flet build windows --v --no-rich-output + env: + PYTHONIOENCODING: utf-8 + PYTHONUTF8: 1 + + + - name: Upload Windows Artifact + uses: actions/upload-artifact@v4.3.4 + with: + name: windows-build-artifact + path: build/windows + if-no-files-found: error + overwrite: false + +