forked from maplibre/maplibre-gl-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport of Migrate Benchmarks to 1.x (#444)
* remove mapbox specific access token code, rename MAPBOX_STYLES to MAPLIBRE_STYLES * fetch maplibre-gl-js releases, adapt to existing changes in bench/versions/benchmarks.js * use a style and tiles from maptiler instead of mapbox * comment out broken benchmarks * remove base.css from mapbox * handle errored status for benchmarks * adapt to maptiler style * also replace mapbox raster sources with suitable replacements from maptiler * replace another mapbox source by maptiler, no idea if this is even used as all benchmarks worked before * fix SymbolLayout benchmark * fix benchmark FilterEvaluate * adapt icon-image to maptiler sprite, revert wrong text-field change * also handle benchmarks from old mapbox releases (#420) * Remove LayoutDDS * Fix page title * enable Validate and Layout benchmarks for styles * Upload `benchmarks_generated.js` to GitHub Pages * Copy only `benchmarks_generated.js` * Copy `benchmarks_generated.js.map` * Update urls for `benchmarks_generated.js` * Adapt upload-benchmarks workflow to 1.x branch * Compare to 1.x head instead of main * Fix test for v1 Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
- Loading branch information
Showing
16 changed files
with
109 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Upload Benchmarks | ||
|
||
on: | ||
push: | ||
branches: | ||
- 1.x | ||
tags: | ||
- v1.* | ||
|
||
jobs: | ||
upload_benchmarks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 10 x64 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 10 | ||
architecture: x64 | ||
|
||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build benchmarks | ||
run: yarn run build-benchmarks | ||
|
||
- name: Copy benchmarks_generated.js | ||
run: | | ||
mkdir tmp | ||
cp bench/versions/benchmarks_generated.js tmp | ||
cp bench/versions/benchmarks_generated.js.map tmp | ||
- name: Upload to GitHub Pages (main) | ||
if: startsWith(github.ref, 'refs/heads/1.x') | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: tmp | ||
destination_dir: benchmarks/1.x | ||
|
||
- name: Get tag | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
|
||
- name: Upload to GitHub Pages (tag) | ||
if: startsWith(github.ref, 'refs/tags/v1.') | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: tmp | ||
destination_dir: benchmarks/${{ env.TAG }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.