Skip to content

Commit

Permalink
Added workflow for 32-bit..
Browse files Browse the repository at this point in the history
  • Loading branch information
UncertainProd committed Aug 24, 2021
1 parent 7d76a7a commit 754b518
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
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}}

0 comments on commit 754b518

Please sign in to comment.