-
-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (40 loc) · 1.25 KB
/
build-tzpb.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
name: build-tzpb
on:
push:
branches: [main]
env:
TIMEZONE_BOUNDARY_VERSION: 2024a
jobs:
build-tzpb-pipeline:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.22", "1.23"]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Download files
run: |
wget https://github.com/evansiroky/timezone-boundary-builder/releases/download/${TIMEZONE_BOUNDARY_VERSION}/timezones-with-oceans.geojson.zip
ls -alh
unzip timezones-with-oceans.geojson.zip
ls -alh
mkdir data
ls -alh
cp combined-with-oceans.json data/
- name: Install geojson2tzpb
run: cd cmd/geojson2tzpb;go install
- name: Install reducetzpb
run: cd cmd/reducetzpb;go install
- name: Install compresstzpb
run: cd cmd/compresstzpb;go install
- name: Install preindextzpb
run: cd cmd/preindextzpb;go install
- name: Convert GeoJSON to pb
run: |
geojson2tzpb data/combined-with-oceans.json | xargs reducetzpb | xargs compresstzpb
preindextzpb data/combined-with-oceans.reduce.pb
ls -alh data/