diff --git a/.github/actions/setup-jvm-toolchain/action.yml b/.github/actions/setup-jvm-toolchain/action.yml index 9b7cf9b8..1bd9983f 100644 --- a/.github/actions/setup-jvm-toolchain/action.yml +++ b/.github/actions/setup-jvm-toolchain/action.yml @@ -25,10 +25,6 @@ inputs: based build.sh which does not use Gradle. required: false default: "" - cache-disabled: - description: "Disable Gradle cache restore and save" - required: false - default: "false" runs: using: composite @@ -65,7 +61,7 @@ runs: uses: gradle/actions/setup-gradle@v6.3.0 with: gradle-version: ${{ inputs.gradle-version }} - cache-disabled: ${{ inputs.cache-disabled }} + cache-disabled: true - name: Put configured JDK first on PATH shell: bash diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5a387217..89309cee 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -52,11 +52,6 @@ jobs: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} targets: wasm32-unknown-unknown - - name: Cache Cargo - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup Node.js ${{ needs.get-configs.outputs.node-version }} uses: actions/setup-node@v6 with: @@ -77,15 +72,7 @@ jobs: with: go-version: ${{ needs.get-configs.outputs.go-version }} - - name: Cache uniffi-bindgen-go - id: cache-uniffi-bindgen-go - uses: actions/cache@v4 - with: - path: ~/.cargo/bin/uniffi-bindgen-go* - key: uniffi-bindgen-go-${{ needs.get-configs.outputs.uniffi-bindgen-go-tag }}-ubuntu-latest - - name: Install uniffi-bindgen-go ${{ needs.get-configs.outputs.uniffi-bindgen-go-tag }} - if: steps.cache-uniffi-bindgen-go.outputs.cache-hit != 'true' run: cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag '${{ needs.get-configs.outputs.uniffi-bindgen-go-tag }}' - name: Log tool versions diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index b34e76b6..cbf7c372 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -88,12 +88,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Install cargo-about ${{ needs.get-configs.outputs.cargo-about-version }} uses: taiki-e/install-action@v2.86.7 with: @@ -146,12 +140,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup JVM toolchain uses: ./.github/actions/setup-jvm-toolchain with: @@ -160,7 +148,6 @@ jobs: kotlin-version: ${{ needs.get-configs.outputs.kotlin-version }} ktlint-version: ${{ needs.get-configs.outputs.ktlint-version }} gradle-version: ${{ needs.get-configs.outputs.gradle-version }} - cache-disabled: ${{ github.event_name == 'workflow_dispatch' }} - name: Log tool versions uses: ./.github/actions/print-build-versions @@ -211,12 +198,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup Node.js ${{ needs.get-configs.outputs.node-version }} uses: actions/setup-node@v6 with: @@ -280,12 +261,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Log tool versions uses: ./.github/actions/print-build-versions @@ -329,12 +304,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup Python ${{ needs.get-configs.outputs.python-version }} uses: actions/setup-python@v6 with: @@ -387,27 +356,12 @@ jobs: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }}${{ matrix.target && format('-{0}', matrix.target) || '' }} targets: ${{ matrix.target || '' }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup Go ${{ needs.get-configs.outputs.go-version }} uses: actions/setup-go@v6 with: go-version: ${{ needs.get-configs.outputs.go-version }} - - name: Cache uniffi-bindgen-go - if: ${{ github.event_name != 'workflow_dispatch' }} - id: cache-uniffi-bindgen-go - uses: actions/cache@v4 - with: - path: ~/.cargo/bin/uniffi-bindgen-go* - key: uniffi-bindgen-go-${{ needs.get-configs.outputs.uniffi-bindgen-go-tag }}-${{ matrix.os }} - - name: Install uniffi-bindgen-go ${{ needs.get-configs.outputs.uniffi-bindgen-go-tag }} - if: steps.cache-uniffi-bindgen-go.outputs.cache-hit != 'true' run: cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag '${{ needs.get-configs.outputs.uniffi-bindgen-go-tag }}' - name: Log tool versions diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a329f2b5..a3991a0d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -41,6 +41,8 @@ jobs: build-mode: none - language: python build-mode: none + - language: go + build-mode: none - language: actions build-mode: none diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a75619c1..992b6ec4 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -104,12 +104,6 @@ jobs: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} components: clippy - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ needs.get-configs.outputs.working-dir }} - - name: Log tool versions uses: ./.github/actions/print-build-versions @@ -165,12 +159,6 @@ jobs: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} components: llvm-tools-preview - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Install cargo-llvm-cov ${{ needs.get-configs.outputs.cargo-llvm-cov-version }} uses: taiki-e/install-action@v2.86.7 with: @@ -216,12 +204,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup JVM toolchain uses: ./.github/actions/setup-jvm-toolchain with: @@ -230,7 +212,6 @@ jobs: kotlin-version: ${{ needs.get-configs.outputs.kotlin-version }} ktlint-version: ${{ needs.get-configs.outputs.ktlint-version }} gradle-version: ${{ needs.get-configs.outputs.gradle-version }} - cache-disabled: ${{ github.event_name == 'workflow_dispatch' }} - name: Log tool versions uses: ./.github/actions/print-build-versions @@ -270,12 +251,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup Node.js ${{ needs.get-configs.outputs.node-version }} uses: actions/setup-node@v6 with: @@ -322,12 +297,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup Python ${{ needs.get-configs.outputs.python-version }} uses: actions/setup-python@v6 with: @@ -366,12 +335,6 @@ jobs: with: toolchain: ${{ needs.get-configs.outputs.rust-toolchain }} - - name: Cache Cargo - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: Swatinem/rust-cache@v2.9.2 - with: - workspaces: ${{ env.WORKING_DIR }} - - name: Setup Go ${{ needs.get-configs.outputs.go-version }} uses: actions/setup-go@v6 with: