File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,48 @@ jobs:
117117 name : wheels
118118 path : dist
119119
120+ build-linux-s390x :
121+ runs-on : ubuntu-latest
122+ needs : [lint]
123+ strategy :
124+ fail-fast : false
125+ matrix :
126+ platform : ['s390x']
127+ steps :
128+ - name : Building package on ${{ matrix.platform }}
129+ uses : appleboy/ssh-action@v0.1.10
130+ env :
131+ GH_REPOSITORY : ${{ github.server_url }}/${{ github.repository }}
132+ with :
133+ host : ${{secrets.S390X_SSH_HOST}}
134+ username : ${{secrets.S390X_SSH_USER }}
135+ key : ${{secrets.S390X_SSH_KEY}}
136+ envs : GH_REPOSITORY
137+ script : |
138+ git clone ${GH_REPOSITORY}
139+ cd py-spy
140+ python3 -m build
141+
142+ - name : Extracting wheel package from remote s390x instance to runner os
143+ env :
144+ S390X_SSH_HOST : ${{ secrets.S390X_SSH_HOST }}
145+ S390X_SSH_KEY : ${{ secrets.S390X_SSH_KEY }}
146+ S390X_SSH_USER : ${{secrets.S390X_SSH_USER }}
147+ run : |
148+ mkdir ~/.ssh
149+ chmod 700 ~/.ssh
150+ touch ~/.ssh/id_builder_s390x
151+ chmod 600 ~/.ssh/id_builder_s390x
152+ echo "$S390X_SSH_KEY" > ~/.ssh/id_builder_s390x
153+ scp -i ~/.ssh/id_builder_s390x -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r $S390X_SSH_USER@$S390X_SSH_HOST:~/py-spy .
154+ ssh -tt -i ~/.ssh/id_builder_s390x -o "StrictHostKeyChecking no" $S390X_SSH_USER@$S390X_SSH_HOST "rm -rf ~/py-spy"
155+
156+ - name : Upload wheels
157+ uses : actions/upload-artifact@v3
158+ with :
159+ name : wheels
160+ path : py-spy/dist
161+
120162 build-freebsd :
121163 runs-on : ubuntu-22.04
122164 needs : [lint]
Original file line number Diff line number Diff line change @@ -245,7 +245,8 @@ pub mod pyruntime {
245245 any(
246246 target_arch = "powerpc64" ,
247247 target_arch = "powerpc" ,
248- target_arch = "mips"
248+ target_arch = "mips" ,
249+ target_arch = "s390x"
249250 )
250251 ) ) ]
251252 pub fn get_tstate_current_offset ( version : & Version ) -> Option < usize > {
You can’t perform that action at this time.
0 commit comments