From 0436eb93493cede86311aabdfe0fe8a8f12fd540 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 22 Jun 2022 11:58:04 +0200 Subject: [PATCH] chore(ci): Rephrase a little bit the Github Actions steps. --- .github/workflows/appservice.yml | 14 ++++++++++---- .github/workflows/ci.yml | 33 ++++++++++++++++---------------- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/.github/workflows/appservice.yml b/.github/workflows/appservice.yml index 8c0195146..ae38cd77b 100644 --- a/.github/workflows/appservice.yml +++ b/.github/workflows/appservice.yml @@ -1,4 +1,4 @@ -name: Appservice +name: AppService on: push: @@ -17,13 +17,19 @@ env: jobs: test-appservice: if: github.event_name == 'push' || !github.event.pull_request.draft - name: ${{ matrix.os }} / appservice / stable + name: ${{ matrix.os }} matrix-sdk-appservice - runs-on: ${{ matrix.os }}-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: true matrix: - os: [ubuntu, macOS] + os: [ubuntu-latest, macos-latest] + include: + - os: ubuntu-latest + os-name: 🐧 + + - os: macos-latest + os-name: 🍏 steps: - name: Checkout diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4e4f8027..cadd64fd0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: Rust tests on: workflow_dispatch: @@ -16,8 +16,8 @@ env: CARGO_TERM_COLOR: always jobs: - test-features: - name: linux / features-${{ matrix.name }} + test-matrix-sdk-features: + name: 🐧 matrix-sdk, ${{ matrix.name }} if: github.event_name == 'push' || !github.event.pull_request.draft runs-on: ubuntu-latest @@ -57,8 +57,8 @@ jobs: command: run args: -p xtask -- ci test-features ${{ matrix.name }} - test-crypto-features: - name: linux / crypto-crate features + test-matrix-sdk-crypto: + name: 🐧 matrix-sdk-crypto runs-on: ubuntu-latest if: github.event_name == 'push' || !github.event.pull_request.draft @@ -85,27 +85,26 @@ jobs: command: run args: -p xtask -- ci test-crypto - test: + test-all-crates: name: ${{ matrix.name }} if: github.event_name == 'push' || !github.event.pull_request.draft - runs-on: ${{ matrix.os || 'ubuntu-latest' }} + runs-on: ${{ matrix.os }} strategy: fail-fast: true matrix: name: - - linux / stable - - linux / beta - - macOS / stable + - name: 🐧 all crates, 🦀 stable + rust: stable + os: ubuntu-latest - include: - - name: linux / stable - - - name: linux / beta + - name: 🐧 all crates, 🦀 beta rust: beta + os: ubuntu-latest - - name: macOS / stable - os: macOS-latest + - name: 🍏 all crates, 🦀 stable + rust: stable + os: macos-latest steps: - name: Checkout @@ -114,7 +113,7 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust || 'stable' }} + toolchain: ${{ matrix.rust }} profile: minimal override: true