Skip to content

Commit

Permalink
fix: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanLav committed Feb 12, 2025
1 parent 68f7ad4 commit a38e8b1
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 98 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
runs-on: macos-13
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout sources
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -62,10 +57,10 @@ jobs:
version: 0.22.0 # Must be in sync with version in Cargo.toml
use-tool-cache: true

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: Build iOS and run tests
shell: bash
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/android-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ jobs:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout Sources
uses: actions/[email protected]
Expand Down Expand Up @@ -54,10 +50,10 @@ jobs:
- name: Install NDK
run: echo "y" | sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;24.0.8215888" --sdk_root=${ANDROID_SDK_ROOT}

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: Gradle Cache
uses: actions/cache@v3
Expand All @@ -78,10 +74,6 @@ jobs:
runs-on: ubuntu-22.04
# if: github.ref == ' refs/head/main'
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout Sources
uses: actions/[email protected]
Expand Down Expand Up @@ -117,10 +109,10 @@ jobs:
- name: Install NDK
run: echo "y" | sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;24.0.8215888" --sdk_root=${ANDROID_SDK_ROOT}

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: Gradle Cache
uses: actions/cache@v3
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:
name: Build android unit test
runs-on: ubuntu-22.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout Sources
uses: actions/[email protected]
Expand Down Expand Up @@ -50,10 +46,10 @@ jobs:
- name: Install NDK
run: echo "y" | sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;24.0.8215888" --sdk_root=${ANDROID_SDK_ROOT}

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: Gradle Cache
uses: actions/cache@v3
Expand All @@ -74,10 +70,6 @@ jobs:
runs-on: ubuntu-22.04
# if: github.ref == ' refs/head/main'
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout Sources
uses: actions/[email protected]
Expand Down Expand Up @@ -112,10 +104,10 @@ jobs:
- name: Install NDK
run: echo "y" | sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;24.0.8215888" --sdk_root=${ANDROID_SDK_ROOT}

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: Gradle Cache
uses: actions/cache@v3
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout sources
uses: actions/[email protected]
with:
Expand All @@ -33,10 +28,10 @@ jobs:
sudo apt update
sudo apt install -y clang libclang-dev libopencv-dev
# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: Install cargo-spellcheck
uses: baptiste0928/cargo-install@1cd874a5478fdca35d868ccc74640c5aabbb8f1b # v3.0.0
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout sources
uses: actions/[email protected]
with:
Expand All @@ -42,10 +37,10 @@ jobs:
version: 0.22.0 # Must be in sync with version in Cargo.toml
use-tool-cache: true

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: cargo clippy
run: |
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/rust-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout sources
uses: actions/[email protected]
with:
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/rust-test-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
runs-on: ubuntu-22.04
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout sources
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -48,10 +43,10 @@ jobs:
version: 0.22.0 # Must be in sync with version in Cargo.toml
use-tool-cache: true

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: cargo nextest
run: |
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/rust-test-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
runs-on: macos-latest
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout sources
uses: actions/[email protected]
with:
Expand All @@ -47,10 +42,10 @@ jobs:
version: 0.22.0 # Must be in sync with version in Cargo.toml
use-tool-cache: true

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: cargo nextest
shell: bash
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/testflight-prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Distribute TestFlight Production Build

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

on:
workflow_dispatch:

Expand All @@ -10,10 +14,6 @@ jobs:
name: Distribute TestFlight Production Build

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/[email protected]
Expand Down Expand Up @@ -52,10 +52,10 @@ jobs:
version: 0.22.0 # Must be in sync with version in Cargo.toml
use-tool-cache: true

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: Install the Apple certificate and provisioning profile
env:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/testflight-qa.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Distribute TestFlight QA Build

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

on:
workflow_dispatch:

Expand All @@ -10,10 +14,6 @@ jobs:
name: Distribute TestFlight QA Build

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/[email protected]
Expand Down Expand Up @@ -52,10 +52,10 @@ jobs:
version: 0.22.0 # Must be in sync with version in Cargo.toml
use-tool-cache: true

# - name: Rust Cache
# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
# with:
# workspaces: rust -> rust/target
- name: Rust Cache
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

- name: Install the Apple certificate and provisioning profile
env:
Expand Down

0 comments on commit a38e8b1

Please sign in to comment.