Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Jun 25, 2021
1 parent 30b6bbb commit 02471a6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
python-version: "3.8"
- name: Install Poetry
run: |
python get-poetry.py --preview -y
python get-poetry.py -y
source $HOME/.poetry/env
- name: Install dependencies
run: |
Expand All @@ -58,17 +58,19 @@ jobs:
curl -L https://github.com/sdispater/python-binaries/releases/download/3.6.8/python-3.6.8.macos.tar.xz -o python-3.6.8.tar.xz
curl -L https://github.com/sdispater/python-binaries/releases/download/3.7.6/python-3.7.6.macos.tar.xz -o python-3.7.6.tar.xz
curl -L https://github.com/sdispater/python-binaries/releases/download/3.8.3/python-3.8.3.macos.tar.xz -o python-3.8.3.tar.xz
curl -L https://github.com/sdispater/python-binaries/releases/download/3.9.0b4/python-3.9.0b4.macos.tar.xz -o python-3.9.0b4.tar.xz
curl -L https://github.com/sdispater/python-binaries/releases/download/3.9.5/python-3.9.5.macos.tar.xz -o python-3.9.5.tar.xz
curl -L https://github.com/sdispater/python-binaries/releases/download/3.10.0b3/python-3.10.0b3.macos.tar.xz -o python-3.10.0b3.tar.xz
tar -zxf python-2.7.18.tar.xz
tar -zxf python-3.5.9.tar.xz
tar -zxf python-3.6.8.tar.xz
tar -zxf python-3.7.6.tar.xz
tar -zxf python-3.8.3.tar.xz
tar -zxf python-3.9.0b4.tar.xz
tar -zxf python-3.9.5.tar.xz
tar -zxf python-3.10.0b3.tar.xz
- name: Build specific release
run: |
source $HOME/.poetry/env
poetry run python sonnet make release --ansi -P "2.7:python-2.7.18/bin/python" -P "3.5:python-3.5.9/bin/python" -P "3.6:python-3.6.8/bin/python" -P "3.7:python-3.7.6/bin/python" -P "3.8:python-3.8.3/bin/python" -P "3.9:python-3.9.0b4/bin/python"
poetry run python sonnet make release --ansi -P "2.7:python-2.7.18/bin/python" -P "3.5:python-3.5.9/bin/python" -P "3.6:python-3.6.8/bin/python" -P "3.7:python-3.7.6/bin/python" -P "3.8:python-3.8.3/bin/python" -P "3.9:python-3.9.5/bin/python" -P "3.10:python-3.10.0b3/bin/python"
- name: Upload release file
uses: actions/upload-artifact@v1
with:
Expand Down Expand Up @@ -96,7 +98,7 @@ jobs:
python-version: "3.8"
- name: Install Poetry
run: |
python get-poetry.py --preview -y
python get-poetry.py -y
$env:Path += ";$env:Userprofile\.poetry\bin"
- name: Install dependencies
run: |
Expand All @@ -109,24 +111,27 @@ jobs:
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.6.8/python-3.6.8.windows.tar.xz -O python-3.6.8.tar.xz
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.7.6/python-3.7.6.windows.tar.xz -O python-3.7.6.tar.xz
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.8.3/python-3.8.3.windows.tar.xz -O python-3.8.3.tar.xz
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.9.0b4/python-3.9.0b4.windows.tar.xz -O python-3.9.0b4.tar.xz
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.9.5/python-3.9.5.windows.tar.xz -O python-3.9.5.tar.xz
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.10.0b3/python-3.10.0b3.windows.tar.xz -O python-3.10.0b3.tar.xz
7z x python-2.7.17.tar.xz
7z x python-3.5.4.tar.xz
7z x python-3.6.8.tar.xz
7z x python-3.7.6.tar.xz
7z x python-3.8.3.tar.xz
7z x python-3.9.0b4.tar.xz
7z x python-3.9.5.tar.xz
7z x python-3.10.0b3.tar.xz
7z x python-2.7.17.tar
7z x python-3.4.4.tar
7z x python-3.5.4.tar
7z x python-3.6.8.tar
7z x python-3.7.6.tar
7z x python-3.8.3.tar
7z x python-3.9.0b4.tar
7z x python-3.9.5.tar
7z x python-3.10.0b3.tar
- name: Build specific release
run: |
$env:Path += ";$env:Userprofile\.poetry\bin"
poetry run python sonnet make release --ansi -P "2.7:python-2.7.17\python.exe" -P "3.5:python-3.5.4\python.exe" -P "3.6:python-3.6.8\python.exe" -P "3.7:python-3.7.6\python.exe" -P "3.8:python-3.8.3\python.exe" -P "3.9:python-3.9.0b4\python.exe"
poetry run python sonnet make release --ansi -P "2.7:python-2.7.17\python.exe" -P "3.5:python-3.5.4\python.exe" -P "3.6:python-3.6.8\python.exe" -P "3.7:python-3.7.6\python.exe" -P "3.8:python-3.8.3\python.exe" -P "3.9:python-3.9.5\python.exe" -P "3.10:python-3.10.0b3\python.exe"
- name: Upload release file
uses: actions/upload-artifact@v1
with:
Expand Down Expand Up @@ -249,7 +254,7 @@ jobs:
python-version: "3.8"
- name: Install Poetry
run: |
python get-poetry.py --preview -y
python get-poetry.py -y
- name: Install dependencies
run: |
source $HOME/.poetry/env
Expand Down
3 changes: 2 additions & 1 deletion make-nix-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ RUNTIMES[4]="${PYTHON38:+-P "3.8:$PYTHON38"}"
test -n "$PYTHON" || PYTHON="python3"

if [ "$OSTYPE" == "linux-gnu" ]; then
$PYTHON get-poetry.py -y --preview
$PYTHON get-poetry.py -y
POETRY="$PYTHON $HOME/.poetry/bin/poetry"
RUNTIMES[5]="${PYTHON39:+-P "3.9:$PYTHON39"}"
RUNTIMES[6]="${PYTHON310:+-P "3.10:$PYTHON310"}"
else
$PYTHON -m pip install poetry -U --pre
POETRY="$PYTHON -m poetry"
Expand Down
1 change: 1 addition & 0 deletions sonnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class MakeReleaseCommand(Command):
"3.7": "python3.7",
"3.8": "python3.8",
"3.9": "python3.9",
"3.10": "python3.10",
}

def handle(self):
Expand Down

0 comments on commit 02471a6

Please sign in to comment.