forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (54 loc) · 1.85 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Docker
on:
pull_request:
paths:
- 'docker/**'
- '.github/workflows/docker.yml'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
docker_builds:
strategy:
fail-fast: false
matrix:
include:
- name: alpine-small-amd64
image_name: alpine-small
arch: amd64
- name: alpine-normal-amd64
image_name: alpine-small
arch: amd64
- name: ubuntu-small-amd64
image_name: ubuntu-small
arch: amd64
- name: ubuntu-small-arm64
image_name: ubuntu-small
arch: arm64
- name: ubuntu-full-amd64-proprietary-sdks
image_name: ubuntu-full
arch: amd64
- name: ubuntu-full-arm64
image_name: ubuntu-full
arch: arm64
name: ${{ matrix.name }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Build
shell: bash -l {0}
run: |
docker run --rm --privileged linuxkit/binfmt:v0.8
cd docker/${{ matrix.image_name }}
if test "${{ matrix.name }}" = "ubuntu-full-amd64-proprietary-sdks"; then
./build.sh --platform linux/${{ matrix.arch }} --with-oracle --with-mrsid --with-ecw
else
./build.sh --platform linux/${{ matrix.arch }}
fi
docker run --rm ghcr.io/osgeo/gdal:${{ matrix.image_name }}-latest-${{ matrix.arch }} gdalinfo --formats
docker run --rm ghcr.io/osgeo/gdal:${{ matrix.image_name }}-latest-${{ matrix.arch }} ogrinfo --formats