@@ -24,26 +24,26 @@ jobs:
24
24
buildpyrustdocker : ${{ steps.check.outputs.buildpy }}
25
25
26
26
steps :
27
- - uses : actions/checkout@v3
28
- - uses : dorny/paths-filter@v2
29
- id : filter
30
- with :
31
- filters : |
32
- pgstac:
33
- - 'docker/pgstac/**'
34
- pypgstac:
35
- - 'docker/pypgstac/**'
36
- - id : check
37
- run : |
38
- buildpg=false;
39
- ref=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | tr / _);
40
- [[ "${{ steps.filter.outputs.pgstac }}" == "true" ]] && buildpg=true || ref=main;
41
- echo "pgtag=${{ env.REGISTRY }}/stac-utils/pgstac-postgres:$ref" >>$GITHUB_OUTPUT;
42
- echo "buildpg=$buildpg" >>$GITHUB_OUTPUT;
43
- buildy=false;
44
- [[ "${{ steps.filter.outputs.pypgstac }}" == "true" ]] && buildpy=true || ref=main;
45
- echo "pytag=${{ env.REGISTRY }}/stac-utils/pgstac-pyrust:$ref" >>$GITHUB_OUTPUT;
46
- echo "buildpy=$buildpg" >>$GITHUB_OUTPUT;
27
+ - uses : actions/checkout@v3
28
+ - uses : dorny/paths-filter@v2
29
+ id : filter
30
+ with :
31
+ filters : |
32
+ pgstac:
33
+ - 'docker/pgstac/**'
34
+ pypgstac:
35
+ - 'docker/pypgstac/**'
36
+ - id : check
37
+ run : |
38
+ buildpg=false;
39
+ ref=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | tr / _);
40
+ [[ "${{ steps.filter.outputs.pgstac }}" == "true" ]] && buildpg=true || ref=main;
41
+ echo "pgtag=${{ env.REGISTRY }}/stac-utils/pgstac-postgres:$ref" >>$GITHUB_OUTPUT;
42
+ echo "buildpg=$buildpg" >>$GITHUB_OUTPUT;
43
+ buildy=false;
44
+ [[ "${{ steps.filter.outputs.pypgstac }}" == "true" ]] && buildpy=true || ref=main;
45
+ echo "pytag=${{ env.REGISTRY }}/stac-utils/pgstac-pyrust:$ref" >>$GITHUB_OUTPUT;
46
+ echo "buildpy=$buildpg" >>$GITHUB_OUTPUT;
47
47
48
48
# This builds a base postgres image that has everything installed to be able to run pgstac. This image does not have pgstac itself installed.
49
49
buildpg :
@@ -103,7 +103,7 @@ jobs:
103
103
needs : [changes, buildpg, buildpyrust]
104
104
runs-on : ubuntu-latest
105
105
container :
106
- image : ${{ needs.changes.outputs.pyrustdocker }}
106
+ image : ${{ needs.changes.outputs.pyrustdocker }}
107
107
env :
108
108
PGPASSWORD : postgres
109
109
PGHOST : postgres
@@ -125,114 +125,10 @@ jobs:
125
125
- uses : actions/checkout@v3
126
126
- name : Install pypgstac
127
127
working-directory : /__w/pgstac/pgstac/src/pypgstac
128
- run : |
128
+ run : |
129
129
pip install .[dev,test,psycopg];
130
130
131
131
- name : Run tests
132
132
working-directory : /__w/pgstac/pgstac/docker/pypgstac/bin
133
- run : |
133
+ run : |
134
134
./test
135
-
136
- linux :
137
- runs-on : ubuntu-latest
138
- strategy :
139
- matrix :
140
- target : [x86_64, x86, aarch64, armv7, s390x, ppc64le]
141
- steps :
142
- - uses : actions/checkout@v3
143
- - uses : actions/setup-python@v4
144
- with :
145
- python-version : ' 3.10'
146
- - name : Build wheels
147
- uses : PyO3/maturin-action@v1
148
- with :
149
- working-directory : src/pypgstac
150
- target : ${{ matrix.target }}
151
- args : --release --out /home/runner/work/pgstac/pgstac/dist
152
- sccache : ' true'
153
- manylinux : auto
154
- - name : Upload wheels
155
- uses : actions/upload-artifact@v3
156
- with :
157
- name : wheels
158
- path : /home/runner/work/pgstac/pgstac/dist/*
159
-
160
- windows :
161
- runs-on : windows-latest
162
- strategy :
163
- matrix :
164
- target : [x64, x86]
165
- steps :
166
- - uses : actions/checkout@v3
167
- - uses : actions/setup-python@v4
168
- with :
169
- python-version : ' 3.10'
170
- architecture : ${{ matrix.target }}
171
- - name : Build wheels
172
- uses : PyO3/maturin-action@v1
173
- with :
174
- working-directory : src/pypgstac
175
- target : ${{ matrix.target }}
176
- args : --release --out /home/runner/work/pgstac/pgstac/dist
177
- sccache : ' true'
178
- - name : Upload wheels
179
- uses : actions/upload-artifact@v3
180
- with :
181
- name : wheels
182
- path : /home/runner/work/pgstac/pgstac/dist/*
183
-
184
- macos :
185
- runs-on : macos-latest
186
- strategy :
187
- matrix :
188
- target : [x86_64, aarch64]
189
- steps :
190
- - uses : actions/checkout@v3
191
- - uses : actions/setup-python@v4
192
- with :
193
- python-version : ' 3.10'
194
- - name : Build wheels
195
- uses : PyO3/maturin-action@v1
196
- with :
197
- working-directory : src/pypgstac
198
- target : ${{ matrix.target }}
199
- args : --release --out /tmp/dist
200
- sccache : ' true'
201
- - name : Upload wheels
202
- uses : actions/upload-artifact@v3
203
- with :
204
- name : wheels
205
- path : /tmp/dist/*
206
-
207
- sdist :
208
- runs-on : ubuntu-latest
209
- steps :
210
- - uses : actions/checkout@v3
211
- - name : Build sdist
212
- uses : PyO3/maturin-action@v1
213
- with :
214
- working-directory : src/pypgstac
215
- command : sdist
216
- args : --out /home/runner/work/pgstac/pgstac/dist
217
- - name : Upload sdist
218
- uses : actions/upload-artifact@v3
219
- with :
220
- name : wheels
221
- path : /home/runner/work/pgstac/pgstac/dist/*
222
-
223
- # release:
224
- # name: Release
225
- # runs-on: ubuntu-latest
226
- # if: "startsWith(github.ref, 'refs/tags/')"
227
- # needs: [linux, windows, macos, sdist]
228
- # steps:
229
- # - uses: actions/download-artifact@v3
230
- # with:
231
- # name: wheels
232
- # - name: Publish to PyPI
233
- # uses: PyO3/maturin-action@v1
234
- # env:
235
- # MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
236
- # with:
237
- # command: upload
238
- # args: --skip-existing *
0 commit comments