From 754b5185b2583c60fead1a7765e351414353a970 Mon Sep 17 00:00:00 2001 From: UncertainProd Date: Wed, 25 Aug 2021 04:20:54 +0530 Subject: [PATCH] Added workflow for 32-bit.. --- .github/workflows/build.yml | 90 ++++++++++++++++++------------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b484f8f..a0cf889 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -92,48 +92,48 @@ jobs: asset_content_type: ${{ matrix.ASSET_MIME}} buildwin32bit: - name: Build packages for win-32bit - needs: createrelease - runs-on: ${{ matrix.os }} - strategy: - matrix: - include: - - os: windows-latest - TARGET: windows - CMD_BUILD: pyinstaller --noconfirm --onedir --windowed --icon "./image-assets/appicon.ico" --name "Spritesheet-and-XML-Generator-for-Friday-Night-Funkin" --noupx --add-data "./xmlpngengine.py;." --add-data "./image-assets;image-assets/" --add-data "./NewXMLPngUI.ui;." "./xmlpngUI.py" && cd dist/ && powershell Compress-Archive -LiteralPath ".\Spritesheet-and-XML-Generator-for-Friday-Night-Funkin" -DestinationPath ".\Spritesheet-XML-Generator-FnF-Windows-32bit.zip" - OUT_FILE_NAME: Spritesheet-XML-Generator-FnF-Windows-32bit.zip - ASSET_MIME: application/zip - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.9 32bit - uses: actions/setup-python@v2 - with: - python-version: 3.9 - architecture: 'x86' - - name: Install dependencies - run: | - python -m pip install --upgrade pip --verbose - pip install -r requirements.txt - pip install pyinstaller==4.0 - - name: Build with pyinstaller for ${{matrix.TARGET}} - run: ${{matrix.CMD_BUILD}} - - name: Load Release URL File from release job - uses: actions/download-artifact@v1 - with: - name: release_url - - name: Get Release File Name & Upload URL - id: get_release_info - shell: bash - run: | - value=`cat release_url/release_url.txt` - echo ::set-output name=upload_url::$value - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.get_release_info.outputs.upload_url }} - asset_path: ./dist/${{ matrix.OUT_FILE_NAME}} - asset_name: ${{ matrix.OUT_FILE_NAME}} - asset_content_type: ${{ matrix.ASSET_MIME}} \ No newline at end of file + name: Build packages for win-32bit + needs: createrelease + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: windows-latest + TARGET: windows + CMD_BUILD: pyinstaller --noconfirm --onedir --windowed --icon "./image-assets/appicon.ico" --name "Spritesheet-and-XML-Generator-for-Friday-Night-Funkin" --noupx --add-data "./xmlpngengine.py;." --add-data "./image-assets;image-assets/" --add-data "./NewXMLPngUI.ui;." "./xmlpngUI.py" && cd dist/ && powershell Compress-Archive -LiteralPath ".\Spritesheet-and-XML-Generator-for-Friday-Night-Funkin" -DestinationPath ".\Spritesheet-XML-Generator-FnF-Windows-32bit.zip" + OUT_FILE_NAME: Spritesheet-XML-Generator-FnF-Windows-32bit.zip + ASSET_MIME: application/zip + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.9 32bit + uses: actions/setup-python@v2 + with: + python-version: 3.9 + architecture: 'x86' + - name: Install dependencies + run: | + python -m pip install --upgrade pip --verbose + pip install -r requirements.txt + pip install pyinstaller==4.0 + - name: Build with pyinstaller for ${{matrix.TARGET}} + run: ${{matrix.CMD_BUILD}} + - name: Load Release URL File from release job + uses: actions/download-artifact@v1 + with: + name: release_url + - name: Get Release File Name & Upload URL + id: get_release_info + shell: bash + run: | + value=`cat release_url/release_url.txt` + echo ::set-output name=upload_url::$value + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.get_release_info.outputs.upload_url }} + asset_path: ./dist/${{ matrix.OUT_FILE_NAME}} + asset_name: ${{ matrix.OUT_FILE_NAME}} + asset_content_type: ${{ matrix.ASSET_MIME}} \ No newline at end of file