diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 13555cbac..151b522fd 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -54,7 +54,7 @@ jobs: # No need to upload binaries for dry run (cron) - name: Upload binaries to release if: github.event_name == 'release' - uses: svenstaro/upload-release-action@2.4.0 + uses: svenstaro/upload-release-action@2.5.0 with: repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} file: target/release/meilisearch @@ -87,7 +87,7 @@ jobs: # No need to upload binaries for dry run (cron) - name: Upload binaries to release if: github.event_name == 'release' - uses: svenstaro/upload-release-action@2.4.0 + uses: svenstaro/upload-release-action@2.5.0 with: repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} file: target/release/${{ matrix.artifact_name }} @@ -123,7 +123,7 @@ jobs: - name: Upload the binary to release # No need to upload binaries for dry run (cron) if: github.event_name == 'release' - uses: svenstaro/upload-release-action@2.4.0 + uses: svenstaro/upload-release-action@2.5.0 with: repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} file: target/${{ matrix.target }}/release/meilisearch @@ -183,7 +183,7 @@ jobs: - name: Upload the binary to release # No need to upload binaries for dry run (cron) if: github.event_name == 'release' - uses: svenstaro/upload-release-action@2.4.0 + uses: svenstaro/upload-release-action@2.5.0 with: repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} file: target/${{ matrix.target }}/release/meilisearch diff --git a/.github/workflows/publish-deb-brew-pkg.yml b/.github/workflows/publish-deb-brew-pkg.yml index 13b08d071..a382df3ed 100644 --- a/.github/workflows/publish-deb-brew-pkg.yml +++ b/.github/workflows/publish-deb-brew-pkg.yml @@ -35,7 +35,7 @@ jobs: - name: Build deb package run: cargo deb -p meilisearch -o target/debian/meilisearch.deb - name: Upload debian pkg to release - uses: svenstaro/upload-release-action@2.4.0 + uses: svenstaro/upload-release-action@2.5.0 with: repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} file: target/debian/meilisearch.deb diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5f783ca9e..14417f25c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,36 +25,36 @@ jobs: # Use ubuntu-18.04 to compile with glibc 2.27, which are the production expectations image: ubuntu:18.04 steps: - - uses: actions/checkout@v3 - - name: Install needed dependencies - run: | - apt-get update && apt-get install -y curl - apt-get install build-essential -y - - name: Run test with Rust stable - if: github.event_name != 'schedule' - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: Run test with Rust nightly - if: github.event_name == 'schedule' - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - # Disable cache due to disk space issues with Windows workers in CI - # - name: Cache dependencies - # uses: Swatinem/rust-cache@v2.2.0 - - name: Run cargo check without any default features - uses: actions-rs/cargo@v1 - with: - command: build - args: --locked --release --no-default-features --all - - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --locked --release --all + - uses: actions/checkout@v3 + - name: Install needed dependencies + run: | + apt-get update && apt-get install -y curl + apt-get install build-essential -y + - name: Run test with Rust stable + if: github.event_name != 'schedule' + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Run test with Rust nightly + if: github.event_name == 'schedule' + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + # Disable cache due to disk space issues with Windows workers in CI + # - name: Cache dependencies + # uses: Swatinem/rust-cache@v2.2.0 + - name: Run cargo check without any default features + uses: actions-rs/cargo@v1 + with: + command: build + args: --locked --release --no-default-features --all + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + args: --locked --release --all test-others: name: Tests on ${{ matrix.os }} @@ -64,19 +64,47 @@ jobs: matrix: os: [macos-12, windows-2022] steps: - - uses: actions/checkout@v3 -# - name: Cache dependencies -# uses: Swatinem/rust-cache@v2.2.0 - - name: Run cargo check without any default features - uses: actions-rs/cargo@v1 - with: - command: build - args: --locked --release --no-default-features --all - - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --locked --release --all + - uses: actions/checkout@v3 + # - name: Cache dependencies + # uses: Swatinem/rust-cache@v2.2.0 + - name: Run cargo check without any default features + uses: actions-rs/cargo@v1 + with: + command: build + args: --locked --release --no-default-features --all + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + args: --locked --release --all + + test-all-features: + name: Tests all features on cron schedule only + runs-on: ubuntu-latest + container: + # Use ubuntu-18.04 to compile with glibc 2.27, which are the production expectations + image: ubuntu:18.04 + if: github.event_name == 'schedule' + steps: + - uses: actions/checkout@v3 + - name: Install needed dependencies + run: | + apt-get update + apt-get install --assume-yes build-essential curl + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Run cargo build with all features + uses: actions-rs/cargo@v1 + with: + command: build + args: --workspace --locked --release --all-features + - name: Run cargo test with all features + uses: actions-rs/cargo@v1 + with: + command: test + args: --workspace --locked --release --all-features # We run tests in debug also, to make sure that the debug_assertions are hit test-debug: diff --git a/.github/workflows/uffizzi-build.yml b/.github/workflows/uffizzi-build.yml index 94dc0ee76..1e2ae7018 100644 --- a/.github/workflows/uffizzi-build.yml +++ b/.github/workflows/uffizzi-build.yml @@ -23,7 +23,7 @@ jobs: target: x86_64-unknown-linux-musl - name: Cache dependencies - uses: Swatinem/rust-cache@v2.2.0 + uses: Swatinem/rust-cache@v2.2.1 - name: Run cargo check without any default features uses: actions-rs/cargo@v1 @@ -53,7 +53,7 @@ jobs: type=raw,value=60d - name: Build Image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: ./ file: .github/uffizzi/Dockerfile