Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulev committed Jan 4, 2025
1 parent ed411c5 commit 8fa5915
Showing 1 changed file with 17 additions and 43 deletions.
60 changes: 17 additions & 43 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,16 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.11

- name: install Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.0a2
virtualenvs-in-project: true
- name: astral-sh/setup-uv
uses: astral-sh/[email protected]

- name: install dependencies
run: poetry install

# - name: install exec plugin
# run: poetry plugin add poetry-exec-plugin
run: uv sync --all-extras

# - name: build for linux
# run: poetry exec build-linux
- name: build for linux TODO FIXME
run: "poetry run pyinstaller --onedir --noconsole --noconfirm --clean --workpath .temp --distpath build/linux --name thetanki --additional-hooks-dir pyinstaller-hooks --add-data 'tanki/game.hy:tanki' --add-data 'tanki/background.hy:tanki' --add-data 'tanki/player.hy:tanki' --add-data 'tanki/level.hy:tanki' --add-data 'tanki/common.hy:tanki' --add-data 'tanki/obstacles.hy:tanki' --add-data 'tanki/ui.hy:tanki' --add-data 'assets:assets' --collect-all raylib --collect-all pyray tanki/__main__.py"
- name: build for linux
run: uv run poe build-linux

# - name: make archive
# run: |
Expand Down Expand Up @@ -64,25 +56,16 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.11

- name: install Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.0a2
virtualenvs-in-project: true
- name: astral-sh/setup-uv
uses: astral-sh/[email protected]

- name: install dependencies
run: poetry install

# TODO: failed
# - name: install exec plugin
# run: poetry plugin add poetry-exec-plugin

# run: poetry exec build-windows
run: uv sync --all-extras

- name: build for windows
run: "poetry run pyinstaller --onedir --noconsole --noconfirm --clean --workpath .temp --distpath build/windows --name thetanki --additional-hooks-dir pyinstaller-hooks --add-data 'tanki/game.hy;tanki' --add-data 'tanki/background.hy;tanki' --add-data 'tanki/player.hy;tanki' --add-data 'tanki/level.hy;tanki' --add-data 'tanki/common.hy;tanki' --add-data 'tanki/obstacles.hy;tanki' --add-data 'tanki/ui.hy;tanki' --add-data 'assets;assets' --collect-all raylib --collect-all pyray tanki/__main__.py"
run: uv run poe build-windows

# - name: make archive
# run: |
Expand Down Expand Up @@ -110,25 +93,16 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.11

- name: install Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.0a2
virtualenvs-in-project: true
- name: astral-sh/setup-uv
uses: astral-sh/[email protected]

- name: install dependencies
run: poetry install

# TODO: fixme
# - name: install exec plugin
# run: poetry plugin add poetry-exec-plugin
run: uv sync --all-extras

# - name: build for macos
# run: poetry exec build-macos
- name: build for macos TODO FIXME
run: "poetry run pyinstaller --onedir --noconsole --noconfirm --clean --workpath .temp --distpath build/macos --name thetanki --additional-hooks-dir pyinstaller-hooks --add-data 'tanki/game.hy:tanki' --add-data 'tanki/background.hy:tanki' --add-data 'tanki/player.hy:tanki' --add-data 'tanki/level.hy:tanki' --add-data 'tanki/common.hy:tanki' --add-data 'tanki/obstacles.hy:tanki' --add-data 'tanki/ui.hy:tanki' --add-data 'assets:assets' --collect-all raylib --collect-all pyray tanki/__main__.py"
- name: build for macos
run: uv run poe build-macos

- name: rename out dir
run: mv build/macos/thetanki build/macos/tanki-macos
Expand Down

0 comments on commit 8fa5915

Please sign in to comment.