Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Apr 16, 2024
1 parent 9230e05 commit 9d4b00f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
cancel-previous-runs:
name: Cancel Previous Workflow Runs
runs-on: ubuntu-latest
fmt:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/setup

- name: Cancel Previous Workflow Runs
uses: styfle/cancel-workflow-action

- name: Checkout code
uses: actions/checkout@v4

Expand All @@ -26,15 +33,6 @@ jobs:
with:
access_token: ${{ github.token }}
workflow_id: ${{ github.workflow }}

fmt:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/setup

- name: Setup SSH
uses: webfactory/ssh-agent@v0.5.3
with:
Expand All @@ -54,6 +52,9 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/setup

- name: Cancel Previous Workflow Runs
uses: styfle/cancel-workflow-action

- name: Setup SSH
uses: webfactory/ssh-agent@v0.5.3
with:
Expand All @@ -74,6 +75,9 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup

- name: Cancel Previous Workflow Runs
uses: styfle/cancel-workflow-action

- name: Install psvm
run: |
cargo install --git https://github.com/paritytech/psvm psvm
Expand All @@ -90,6 +94,9 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/setup

- name: Cancel Previous Workflow Runs
uses: styfle/cancel-workflow-action

- name: Checkout the source code
uses: actions/checkout@v3

Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,6 @@ on:
workflow_dispatch:

jobs:
cancel-previous-runs:
name: Cancel Previous Workflow Runs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
workflow_id: ${{ github.workflow }}

block-production:
runs-on: ubuntu-latest

Expand All @@ -34,6 +21,9 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/setup

- name: Cancel Previous Workflow Runs
uses: styfle/cancel-workflow-action

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

Expand Down

0 comments on commit 9d4b00f

Please sign in to comment.