Skip to content

Commit

Permalink
Test windows pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Charl1996 committed Apr 11, 2024
1 parent e5eb033 commit 6022701
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@ on:
types: [published]

jobs:
generate_release_assets:
name: Generate release assets
runs-on: ubuntu-22.04
generate_windows_exe:
name: Generate Windows exe as release asset
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Pull pyinstaller docker image
run: |
docker pull dimagi/commcare-export-pyinstaller-linux
- name: Install pyinstaller
shell: pwsh
run: python -m pip install pyinstaller

- name: Compile linux binary
- name: Generate exe
shell: pwsh
run: |
docker run -v "$(pwd):/src/" dimagi/commcare-export-pyinstaller-linux
pyinstaller --dist ./dist/windows commcare-export.spec
- name: Upload release assets
uses: AButler/[email protected]
with:
files: "./dist/linux/*"
files: "./dist/windows/*"
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6022701

Please sign in to comment.