-
Notifications
You must be signed in to change notification settings - Fork 0
129 lines (102 loc) · 3.37 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.11
- name: astral-sh/setup-uv
uses: astral-sh/[email protected]
- name: install dependencies
run: uv sync --all-extras
- name: build for linux
run: uv run poe build-linux
# - name: make archive
# run: |
# pushd build/linux
# tar cvfz tanki-linux.tar.gz thetanki
# ls -lah tanki-linux.tar.gz
# popd
- name: rename out dir
run: mv build/linux/thetanki build/linux/tanki-linux
# - uses: actions/upload-artifact@v2
# with:
# name: tanki-linux-${{ github.sha }}.tar.gz
# path: build/linux/tanki-linux.tar.gz
- name: upload release to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: linux
run: |
curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
unzip butler.zip && chmod +x butler
./butler push build/linux pkulev/tanki:${CHANNEL}
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.11
- name: astral-sh/setup-uv
uses: astral-sh/[email protected]
- name: install dependencies
run: uv sync --all-extras
- name: build for windows
run: uv run poe build-windows
# - name: make archive
# run: |
# pushd build/windows
# tar cvfz tanki-windows.tar.gz
# ls -lah tanki-windows.tar.gz
# popd
- name: rename out dir
run: mv build/windows/thetanki build/windows/tanki-windows
- name: upload release to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: windows
run: |
curl -L -o butler.zip https://broth.itch.ovh/butler/windows-amd64/LATEST/archive/default
Expand-Archive butler.zip .
./butler push build/windows pkulev/tanki:windows
build-macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.11
- name: astral-sh/setup-uv
uses: astral-sh/[email protected]
- name: install dependencies
run: uv sync --all-extras
- name: build for macos
run: uv run poe build-macos
- name: rename out dir
run: mv build/macos/thetanki build/macos/tanki-macos
# - name: make archive
# run: |
# pushd build/macos
# tar cvfz tanki-macos.tar.gz thetanki
# ls -lah tanki-macos.tar.gz
# popd
# - uses: actions/upload-artifact@v2
# with:
# name: tanki-macos-${{ github.sha }}.tar.gz
# path: build/macos/tanki-macos.tar.gz
- name: upload release to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: macos
run: |
curl -L -o butler.zip https://broth.itch.ovh/butler/darwin-amd64/LATEST/archive/default
unzip butler.zip && chmod +x butler
./butler push build/macos/ pkulev/tanki:${CHANNEL}