From 3e529c0995a801fb305fb4d67a89840e49b0392e Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Thu, 6 Mar 2025 05:58:46 -0500 Subject: [PATCH] Minor rust improvements (#3282) --- .github/workflows/rust-ci.yaml | 11 +++++++++-- .gitignore | 5 +++++ include/mbgl/util/tile_server_options.hpp | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust-ci.yaml b/.github/workflows/rust-ci.yaml index f750de407..dcc6ce627 100644 --- a/.github/workflows/rust-ci.yaml +++ b/.github/workflows/rust-ci.yaml @@ -9,13 +9,20 @@ on: defaults: run: - shell: bash working-directory: rustutils/ jobs: test: name: Rust tests - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + include: + - os: macos-latest # M-series CPU + - os: macos-13 # x64 CPU + - os: windows-latest + - os: ubuntu-latest steps: - uses: taiki-e/install-action@v2 with: { tool: just } diff --git a/.gitignore b/.gitignore index 8e5e2b2ab..a15a2d842 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,8 @@ cache.sqlite cache.sqlite-journal out.png /test/android/app/build + +# Rust +**/target/ +**/*.rs.bk +**/*.profraw diff --git a/include/mbgl/util/tile_server_options.hpp b/include/mbgl/util/tile_server_options.hpp index 8fc1b943f..2182f34d9 100644 --- a/include/mbgl/util/tile_server_options.hpp +++ b/include/mbgl/util/tile_server_options.hpp @@ -265,7 +265,7 @@ public: TileServerOptions& withDefaultStyles(std::vector styles); /** - * @brief Sets the default style by name. The style name must exists in + * @brief Sets the default style by name. The style name must exist in * defaultStyles collection * * @param defaultStyle The style name