Skip to content

🚀 Final tweaks

🚀 Final tweaks #43

Workflow file for this run

# Run performance benchmarks
name: Benchmarks
on:
push:
branches: ["main"]
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
branches: ["main"]
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
rust:
runs-on: ubuntu-24.04
container:
image: ghcr.io/osgeo/gdal:ubuntu-small-3.11.5
options: --privileged
strategy:
matrix:
toolchain:
- 1.89.0 # msrv
- stable
steps:
- name: Install dev dependencies and setup git
run: |
apt update
apt install -y build-essential cmake git libclang-dev pkg-config
git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Download and process sample GeoTIFF
run: |
gdal raster convert --co COMPRESS=LZW --co TILED=YES --co PREDICTOR=2 https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/37/M/BV/2024/10/S2A_37MBV_20241029_0_L2A/TCI.tif benches/TCI_lzw.tif
ls -lh benches/
- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
with:
channel: ${{ matrix.toolchain }}
cache: false
cache-target: release
bins: cargo-codspeed
- name: Build the benchmark target(s)
run: cargo codspeed build
- name: Run the benchmarks
if: matrix.toolchain == 'stable'
uses: CodSpeedHQ/action@6a8e2b874c338bf81cc5e8be715ada75908d3871 # v4.3.4
with:
mode: instrumentation
run: cargo codspeed run