-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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 | ||
|