From 446fea140429792bb08c5306964e0e189b0b118d Mon Sep 17 00:00:00 2001 From: Aditya Sharad Date: Wed, 29 Mar 2023 16:52:21 -0700 Subject: [PATCH] WIP: Run 4 jobs in parallel --- .github/workflows/__swift-autobuild.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/__swift-autobuild.yml b/.github/workflows/__swift-autobuild.yml index 145142385..9a8430205 100644 --- a/.github/workflows/__swift-autobuild.yml +++ b/.github/workflows/__swift-autobuild.yml @@ -12,12 +12,10 @@ jobs: swift-autobuild: strategy: matrix: - include: - - os: macos-latest - version: cached + slice: [1,2,3,4] name: Swift analysis using autobuild timeout-minutes: 15 - runs-on: ${{ matrix.os }} + runs-on: macos-latest steps: - name: Check out repository uses: actions/checkout@v3 @@ -25,7 +23,7 @@ jobs: id: prepare-test uses: ./.github/prepare-test with: - version: ${{ matrix.version }} + version: cached - uses: ./../action/init id: init with: @@ -56,7 +54,7 @@ jobs: if: failure() || cancelled() uses: actions/upload-artifact@v3 with: - name: swift-autobuild-db + name: swift-autobuild-db-${{ matrix.slice }} path: ${{ fromJson(steps.analysis.outputs.db-locations).swift }} env: CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: 'true' # Remove when Swift is GA.