Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build workflow #2434

Open
wants to merge 16 commits into
base: fix/xcode16-build
Choose a base branch
from
17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Ubuntu Development",
"image": "ubuntu:22.04",

"customizations": {
"vscode": {
"extensions": [
"ms-vscode.rust-analyzer"
]
}
},

"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
}
}
7 changes: 1 addition & 6 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 @@ -63,7 +58,7 @@ jobs:
use-tool-cache: true

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

Expand Down
14 changes: 3 additions & 11 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 @@ -55,7 +51,7 @@ jobs:
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
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

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 @@ -118,7 +110,7 @@ jobs:
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
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

Expand All @@ -137,7 +129,7 @@ jobs:
./gradlew clean assembleDebug --stacktrace

- name: Upload Gplay unsigned APKs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: signer-debug-unsigned
path: |
Expand Down
14 changes: 3 additions & 11 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 @@ -51,7 +47,7 @@ jobs:
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
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

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 @@ -113,7 +105,7 @@ jobs:
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
uses: Swatinem/rust-cache@27b8ea9368cf428f0bfe41b0876b1a7e809d9844 # v2.7.7
with:
workspaces: rust -> rust/target

Expand Down Expand Up @@ -154,7 +146,7 @@ jobs:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Upload Gplay release APKs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: signer-release-signed
path: |
Expand Down
7 changes: 1 addition & 6 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 @@ -34,7 +29,7 @@ jobs:
sudo apt install -y clang libclang-dev libopencv-dev

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

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/rust-cargo-deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: actions/[email protected]

- name: Run cargo-deny
uses: EmbarkStudios/cargo-deny-action@5def368d93be6684ad20a0fdec5f23c8ea11e022 # v1.5.13
uses: EmbarkStudios/cargo-deny-action@v2.0.4
with:
command: --manifest-path=./rust/Cargo.toml check ${{ matrix.checks }}
manifest-path: ./rust/Cargo.toml
command: check ${{ matrix.checks }}
7 changes: 1 addition & 6 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 @@ -43,7 +38,7 @@ jobs:
use-tool-cache: true

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

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
7 changes: 1 addition & 6 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 @@ -49,7 +44,7 @@ jobs:
use-tool-cache: true

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

Expand Down
7 changes: 1 addition & 6 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 Down Expand Up @@ -48,7 +43,7 @@ jobs:
use-tool-cache: true

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

Expand Down
10 changes: 5 additions & 5 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 @@ -53,7 +53,7 @@ jobs:
use-tool-cache: true

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

Expand Down
10 changes: 5 additions & 5 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 @@ -53,7 +53,7 @@ jobs:
use-tool-cache: true

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

Expand Down
Loading
Loading