From 74f1c5b67b3691578f909a9723a353ae0cb1eafd Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Mon, 2 May 2022 00:20:57 -0700 Subject: [PATCH] CI: Add plugins job (#5406) --- .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32bb22c9cd..6cb64f0c0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,3 +155,50 @@ jobs: - name: Test Nushell in virtualenv run: cd virtualenv && tox -e ${{ matrix.py }} -- -k nushell shell: bash + + plugins: + strategy: + fail-fast: false + matrix: + platform: [windows-latest, macos-latest, ubuntu-latest] + rust: + - stable + + runs-on: ${{ matrix.platform }} + + steps: + - uses: actions/checkout@v2 + + - name: Setup Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + + # This job does not use rust-cache because 1) we have limited cache space, 2) even + # without caching, it's not the slowest job. Revisit if those facts change. + + - name: Build nu_plugin_example + uses: actions-rs/cargo@v1 + with: + command: build + args: --package nu_plugin_example + + - name: Build nu_plugin_gstat + uses: actions-rs/cargo@v1 + with: + command: build + args: --package nu_plugin_gstat + + - name: Build nu_plugin_inc + uses: actions-rs/cargo@v1 + with: + command: build + args: --package nu_plugin_inc + + - name: Build nu_plugin_query + uses: actions-rs/cargo@v1 + with: + command: build + args: --package nu_plugin_query