From a0389ad39f4fc5c17c1af89aaa641e47c8569339 Mon Sep 17 00:00:00 2001 From: Edo Date: Fri, 25 Nov 2022 15:21:11 +0000 Subject: [PATCH] [General]: Use concurrency for build (#592) --- .github/workflows/build.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 310c2aff..5cc63eee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,10 @@ on: - "*" types: [opened, synchronize, reopened] +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Build binaries @@ -18,15 +22,7 @@ jobs: configuration: - Debug - Release - steps: - - name: Wait for previous workflows - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - uses: softprops/turnstyle@v1 - with: - poll-interval-seconds: 10 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + steps: - name: Check out files uses: actions/checkout@v3 with: @@ -83,13 +79,6 @@ jobs: - name: Add known hosts run: ssh-keyscan -H ${{ secrets.XLABS_MASTER_SSH_ADDRESS }} >> ~/.ssh/known_hosts - - - name: Wait for previous workflows - uses: softprops/turnstyle@v1 - with: - poll-interval-seconds: 10 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # - name: Remove old data files # run: ssh ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }} rm -rf ${{ env.XLABS_MASTER_PATH }}/iw4x/data/*