Skip to content

Commit f6361df

Browse files
committed
Changed actions
Signed-off-by: chandr-andr (Kiselev Aleksandr) <chandr@chandr.net>
1 parent 997f4ea commit f6361df

File tree

1 file changed

+146
-146
lines changed

1 file changed

+146
-146
lines changed

.github/workflows/release.yml

Lines changed: 146 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -40,155 +40,155 @@ jobs:
4040
# If we're running on debian-based system.
4141
apt update -y && apt-get install -y libssl-dev openssl pkg-config
4242
fi
43-
# - name: Upload wheels
44-
# uses: actions/upload-artifact@v3
45-
# with:
46-
# name: wheels
47-
# path: dist
48-
# - name: Releasing assets
49-
# uses: softprops/action-gh-release@v1
50-
# with:
51-
# files: |
52-
# dist/*
53-
# env:
54-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
- name: Upload wheels
44+
uses: actions/upload-artifact@v3
45+
with:
46+
name: wheels
47+
path: dist
48+
- name: Releasing assets
49+
uses: softprops/action-gh-release@v1
50+
with:
51+
files: |
52+
dist/*
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555

56-
# windows:
57-
# runs-on: windows-latest
58-
# strategy:
59-
# matrix:
60-
# target: [x64, x86]
61-
# steps:
62-
# - uses: actions/checkout@v3
63-
# - uses: actions/setup-python@v4
64-
# with:
65-
# python-version: '3.10'
66-
# architecture: ${{ matrix.target }}
67-
# - name: Build wheels
68-
# uses: PyO3/maturin-action@v1
69-
# with:
70-
# target: ${{ matrix.target }}
71-
# args: --release --out dist --find-interpreter
72-
# sccache: 'true'
73-
# - name: Upload wheels
74-
# uses: actions/upload-artifact@v3
75-
# with:
76-
# name: wheels
77-
# path: dist
78-
# - name: Releasing assets
79-
# uses: softprops/action-gh-release@v1
80-
# with:
81-
# files: |
82-
# dist/*
83-
# env:
84-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
windows:
57+
runs-on: windows-latest
58+
strategy:
59+
matrix:
60+
target: [x64, x86]
61+
steps:
62+
- uses: actions/checkout@v3
63+
- uses: actions/setup-python@v4
64+
with:
65+
python-version: '3.10'
66+
architecture: ${{ matrix.target }}
67+
- name: Build wheels
68+
uses: PyO3/maturin-action@v1
69+
with:
70+
target: ${{ matrix.target }}
71+
args: --release --out dist --find-interpreter
72+
sccache: 'true'
73+
- name: Upload wheels
74+
uses: actions/upload-artifact@v3
75+
with:
76+
name: wheels
77+
path: dist
78+
- name: Releasing assets
79+
uses: softprops/action-gh-release@v1
80+
with:
81+
files: |
82+
dist/*
83+
env:
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8585

86-
# macos:
87-
# runs-on: macos-latest
88-
# strategy:
89-
# matrix:
90-
# target: [x86_64, aarch64]
91-
# env:
92-
# OPENSSL_DIR: /opt/homebrew/Cellar/openssl@3/3.3.1
93-
# steps:
94-
# - uses: actions/checkout@v3
95-
# - uses: actions/setup-python@v4
96-
# with:
97-
# python-version: '3.10'
98-
# - name: Brew update
99-
# run: brew update
100-
# - name: brew upgrade
101-
# run: brew upgrade
102-
# - name: brew ssl
103-
# run: brew info openssl
104-
# - name: Install openssl deps
105-
# run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install openssl
86+
macos:
87+
runs-on: macos-latest
88+
strategy:
89+
matrix:
90+
target: [x86_64, aarch64]
91+
env:
92+
OPENSSL_DIR: /opt/homebrew/Cellar/openssl@3/3.3.1
93+
steps:
94+
- uses: actions/checkout@v3
95+
- uses: actions/setup-python@v4
96+
with:
97+
python-version: '3.10'
98+
- name: Brew update
99+
run: brew update
100+
- name: brew upgrade
101+
run: brew upgrade
102+
- name: brew ssl
103+
run: brew info openssl
104+
- name: Install openssl deps
105+
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install openssl
106106

107-
# - name: Build wheels
108-
# uses: PyO3/maturin-action@v1
109-
# with:
110-
# target: ${{ matrix.target }}
111-
# args: --release --out dist --find-interpreter
112-
# sccache: 'true'
113-
# - name: Upload wheels
114-
# uses: actions/upload-artifact@v3
115-
# with:
116-
# name: wheels
117-
# path: dist
118-
# - name: Releasing assets
119-
# uses: softprops/action-gh-release@v1
120-
# with:
121-
# files: |
122-
# dist/*
123-
# env:
124-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107+
- name: Build wheels
108+
uses: PyO3/maturin-action@v1
109+
with:
110+
target: ${{ matrix.target }}
111+
args: --release --out dist --find-interpreter
112+
sccache: 'true'
113+
- name: Upload wheels
114+
uses: actions/upload-artifact@v3
115+
with:
116+
name: wheels
117+
path: dist
118+
- name: Releasing assets
119+
uses: softprops/action-gh-release@v1
120+
with:
121+
files: |
122+
dist/*
123+
env:
124+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
125125

126-
# sdist:
127-
# runs-on: ubuntu-latest
128-
# steps:
129-
# - uses: actions/checkout@v3
130-
# - name: Build sdist
131-
# uses: PyO3/maturin-action@v1
132-
# with:
133-
# command: sdist
134-
# args: --out dist
135-
# - name: Upload sdist
136-
# uses: actions/upload-artifact@v3
137-
# with:
138-
# name: wheels
139-
# path: dist
140-
# - name: Releasing assets
141-
# uses: softprops/action-gh-release@v1
142-
# with:
143-
# files: |
144-
# dist/*
145-
# env:
146-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126+
sdist:
127+
runs-on: ubuntu-latest
128+
steps:
129+
- uses: actions/checkout@v3
130+
- name: Build sdist
131+
uses: PyO3/maturin-action@v1
132+
with:
133+
command: sdist
134+
args: --out dist
135+
- name: Upload sdist
136+
uses: actions/upload-artifact@v3
137+
with:
138+
name: wheels
139+
path: dist
140+
- name: Releasing assets
141+
uses: softprops/action-gh-release@v1
142+
with:
143+
files: |
144+
dist/*
145+
env:
146+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147147

148-
# musllinux:
149-
# runs-on: ubuntu-latest
150-
# strategy:
151-
# matrix:
152-
# target:
153-
# - x86_64-unknown-linux-musl
154-
# - i686-unknown-linux-musl
155-
# steps:
156-
# - uses: actions/checkout@v3
157-
# - uses: actions/setup-python@v4
158-
# with:
159-
# python-version: '3.10'
160-
# architecture: x64
161-
# - name: Build wheels
162-
# uses: messense/maturin-action@v1
163-
# with:
164-
# target: ${{ matrix.target }}
165-
# args: --release --out dist --find-interpreter
166-
# manylinux: musllinux_1_2
167-
# - name: Upload wheels
168-
# uses: actions/upload-artifact@v3
169-
# with:
170-
# name: wheels
171-
# path: dist
172-
# - name: Releasing assets
173-
# uses: softprops/action-gh-release@v1
174-
# with:
175-
# files: |
176-
# dist/*
177-
# env:
178-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148+
musllinux:
149+
runs-on: ubuntu-latest
150+
strategy:
151+
matrix:
152+
target:
153+
- x86_64-unknown-linux-musl
154+
- i686-unknown-linux-musl
155+
steps:
156+
- uses: actions/checkout@v3
157+
- uses: actions/setup-python@v4
158+
with:
159+
python-version: '3.10'
160+
architecture: x64
161+
- name: Build wheels
162+
uses: messense/maturin-action@v1
163+
with:
164+
target: ${{ matrix.target }}
165+
args: --release --out dist --find-interpreter
166+
manylinux: musllinux_1_2
167+
- name: Upload wheels
168+
uses: actions/upload-artifact@v3
169+
with:
170+
name: wheels
171+
path: dist
172+
- name: Releasing assets
173+
uses: softprops/action-gh-release@v1
174+
with:
175+
files: |
176+
dist/*
177+
env:
178+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
179179

180-
# release:
181-
# name: Release
182-
# runs-on: ubuntu-latest
183-
# needs: [linux, windows, macos, musllinux, sdist]
184-
# steps:
185-
# - uses: actions/download-artifact@v3
186-
# with:
187-
# name: wheels
188-
# - name: Publish to PyPI
189-
# uses: PyO3/maturin-action@v1
190-
# env:
191-
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
192-
# with:
193-
# command: upload
194-
# args: --non-interactive --skip-existing *
180+
release:
181+
name: Release
182+
runs-on: ubuntu-latest
183+
needs: [linux, windows, macos, musllinux, sdist]
184+
steps:
185+
- uses: actions/download-artifact@v3
186+
with:
187+
name: wheels
188+
- name: Publish to PyPI
189+
uses: PyO3/maturin-action@v1
190+
env:
191+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
192+
with:
193+
command: upload
194+
args: --non-interactive --skip-existing *

0 commit comments

Comments
 (0)