From 03780132d2c464b88dc5bf0e5ad404ecc8e48463 Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Thu, 3 Nov 2022 23:17:15 +0100 Subject: [PATCH 1/2] =?UTF-8?q?ci:=20=F0=9F=91=B7=20Update=20CI=20to=20run?= =?UTF-8?q?=20in=20parallel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 45 +++++++++++++++------------------------ 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6b55c6d..c0d3d31 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ env: jobs: continuous-integration: - name: Checks + name: cargo ${{ matrix.action.command }} - ${{ matrix.job.os }} runs-on: ${{ matrix.job.os }} strategy: fail-fast: false @@ -29,6 +29,19 @@ jobs: - os: windows-latest os-name: windows binary-postfix: ".exe" + action: + - command: build + args: --release + - command: test + args: --all-features --workspace + - command: fmt + args: --all -- --check + - command: clippy + args: --all-targets --all-features --workspace -- -D warnings + - command: doc + args: --no-deps --document-private-items --all-features --workspace --examples + - command: publish + args: --dry-run steps: - name: Install dependencies if: ${{ matrix.job.os == 'ubuntu-latest' }} @@ -45,34 +58,10 @@ jobs: - name: Build uses: actions-rs/cargo@v1 with: - command: build - args: --release - - name: Test suite - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features --workspace - - name: Format check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - name: Clippy check - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-targets --all-features --workspace -- -D warnings - - name: Docs - uses: actions-rs/cargo@v1 - with: - command: doc - args: --no-deps --document-private-items --all-features --workspace --examples - - name: Publish dry run - uses: actions-rs/cargo@v1 - with: - command: publish - args: --dry-run + command: ${{ matrix.action.command }} + args: ${{ matrix.action.args }} - name: Archive artifact + if: ${{ matrix.action.command == 'build' }} uses: actions/upload-artifact@v3 with: name: espup-${{ matrix.job.os-name }}${{ matrix.job.binary-postfix }} From 94376da073df14719bd542e5af5a3a138a7f0a78 Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Thu, 3 Nov 2022 23:26:41 +0100 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20=E2=9A=A1=EF=B8=8F=20Only=20run=20CI?= =?UTF-8?q?=20when=20pushing=20to=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c0d3d31..797ea22 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,6 +3,8 @@ name: Continuous Integration on: push: + branches: + - main paths-ignore: - "**/README.md" - "**/cd.yml"