Skip to content

fix bot freq

fix bot freq #136

Workflow file for this run

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/