Skip to content

Commit 6923d2c

Browse files
authored
Merge pull request #28 from Congyuwang/manylinux2014-x86
change x86 linux build to manylinux2014
2 parents f777a1b + 9c0506a commit 6923d2c

File tree

2 files changed

+67
-3
lines changed

2 files changed

+67
-3
lines changed

.github/workflows/CI.yml

+34-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
name: wheels
8686
path: dist
8787

88-
linux:
88+
manylinux_2_28:
8989
runs-on: ubuntu-latest
9090
strategy:
9191
fail-fast: false
@@ -117,6 +117,38 @@ jobs:
117117
name: wheels
118118
path: dist
119119

120+
manylinux2014:
121+
runs-on: ubuntu-latest
122+
strategy:
123+
fail-fast: false
124+
matrix:
125+
target: [x86_64]
126+
steps:
127+
- uses: actions/checkout@v2
128+
- uses: actions/setup-python@v4
129+
with:
130+
python-version: 3.9
131+
architecture: x64
132+
- name: Build Wheels
133+
uses: messense/maturin-action@v1
134+
with:
135+
rust-toolchain: stable
136+
rustup-components: rustfmt
137+
target: ${{ matrix.target }}
138+
manylinux: 2014
139+
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11'
140+
container: congyuwang/manylinux2014:${{ matrix.target }}
141+
- name: Install built wheel and test
142+
if: matrix.target == 'x86_64'
143+
run: |
144+
pip install rocksdict --no-index --find-links dist --force-reinstall
145+
python -m unittest discover -v test
146+
- name: Upload wheels
147+
uses: actions/upload-artifact@v2
148+
with:
149+
name: wheels
150+
path: dist
151+
120152
linux-cross:
121153
runs-on: ubuntu-latest
122154
strategy:
@@ -160,7 +192,7 @@ jobs:
160192
release:
161193
name: Release
162194
runs-on: ubuntu-latest
163-
needs: [ windows, linux, macos, linux-cross ]
195+
needs: [ windows, manylinux_2_28, manylinux2014, macos, linux-cross ]
164196
steps:
165197
- uses: actions/download-artifact@v2
166198
with:

.github/workflows/PR.yml

+33-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
name: wheels
8686
path: dist
8787

88-
linux:
88+
manylinux_2_28:
8989
runs-on: ubuntu-latest
9090
strategy:
9191
fail-fast: false
@@ -117,6 +117,38 @@ jobs:
117117
name: wheels
118118
path: dist
119119

120+
manylinux2014:
121+
runs-on: ubuntu-latest
122+
strategy:
123+
fail-fast: false
124+
matrix:
125+
target: [x86_64]
126+
steps:
127+
- uses: actions/checkout@v2
128+
- uses: actions/setup-python@v4
129+
with:
130+
python-version: 3.9
131+
architecture: x64
132+
- name: Build Wheels
133+
uses: messense/maturin-action@v1
134+
with:
135+
rust-toolchain: stable
136+
rustup-components: rustfmt
137+
target: ${{ matrix.target }}
138+
manylinux: 2014
139+
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11'
140+
container: congyuwang/manylinux2014:${{ matrix.target }}
141+
- name: Install built wheel and test
142+
if: matrix.target == 'x86_64'
143+
run: |
144+
pip install rocksdict --no-index --find-links dist --force-reinstall
145+
python -m unittest discover -v test
146+
- name: Upload wheels
147+
uses: actions/upload-artifact@v2
148+
with:
149+
name: wheels
150+
path: dist
151+
120152
linux-cross:
121153
runs-on: ubuntu-latest
122154
strategy:

0 commit comments

Comments
 (0)