mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-13 18:05:28 +01:00
feat: update stable rust (#1207)
This commit is contained in:
104
.github/workflows/ci.yml
vendored
104
.github/workflows/ci.yml
vendored
@@ -19,14 +19,20 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "nightly"
|
||||
shared-key: "nightly-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Cargo fmt
|
||||
run: |
|
||||
nix develop -i -L .#nightly --command bash -c '
|
||||
@@ -56,14 +62,20 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Run example
|
||||
run: nix develop -i -L .#stable --command cargo r --example ${{ matrix.build-args }}
|
||||
|
||||
@@ -150,14 +162,20 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Clippy
|
||||
run: nix develop -i -L .#stable --command cargo clippy ${{ matrix.build-args }} -- -D warnings
|
||||
- name: Test
|
||||
@@ -183,6 +201,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
@@ -197,10 +218,13 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Test
|
||||
run: nix develop -i -L .#stable --command just itest ${{ matrix.database }}
|
||||
|
||||
@@ -223,6 +247,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
@@ -237,10 +264,13 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Clippy
|
||||
run: nix develop -i -L .#stable --command cargo clippy -- -D warnings
|
||||
- name: Test fake auth mint
|
||||
@@ -263,6 +293,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
@@ -277,10 +310,13 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Test fake mint
|
||||
run: nix develop -i -L .#stable --command just test-pure ${{ matrix.database }}
|
||||
- name: Install Postgres
|
||||
@@ -306,6 +342,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
@@ -320,10 +359,13 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Test
|
||||
run: nix develop -i -L .#stable --command just itest-payment-processor ${{matrix.ln}}
|
||||
|
||||
@@ -358,14 +400,20 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "msrv"
|
||||
shared-key: "msrv-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Build
|
||||
run: nix develop -i -L .#msrv --command cargo build ${{ matrix.build-args }}
|
||||
|
||||
@@ -391,14 +439,20 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Build cdk and binding
|
||||
run: nix develop -i -L ".#${{ matrix.rust }}" --command cargo build ${{ matrix.build-args }} --target ${{ matrix.target }}
|
||||
|
||||
@@ -424,14 +478,20 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "msrv"
|
||||
shared-key: "msrv-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Build cdk wasm
|
||||
run: nix develop -i -L ".#${{ matrix.rust }}" --command cargo build ${{ matrix.build-args }} --target ${{ matrix.target }}
|
||||
|
||||
@@ -450,6 +510,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
@@ -464,10 +527,13 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Start Keycloak with Backup
|
||||
run: |
|
||||
docker compose -f misc/keycloak/docker-compose-recover.yml up -d
|
||||
@@ -490,6 +556,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
@@ -504,10 +573,13 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Run doc tests
|
||||
run: nix develop -i -L .#stable --command cargo test --doc
|
||||
|
||||
@@ -519,13 +591,19 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "stable"
|
||||
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Check docs with strict warnings
|
||||
run: nix develop -i -L .#stable --command just docs-strict
|
||||
|
||||
16
.github/workflows/nutshell_itest.yml
vendored
16
.github/workflows/nutshell_itest.yml
vendored
@@ -10,6 +10,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
@@ -24,8 +27,13 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "integration-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Test Nutshell
|
||||
run: nix develop -i -L .#integration --command just test-nutshell
|
||||
- name: Show logs if tests fail
|
||||
@@ -39,6 +47,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Get flake hash
|
||||
id: flake-hash
|
||||
run: echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
@@ -55,8 +66,13 @@ jobs:
|
||||
uses: DeterminateSystems/nix-installer-action@v17
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
diagnostic-endpoint: ""
|
||||
use-flakehub: false
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "integration-${{ steps.flake-hash.outputs.hash }}"
|
||||
- name: Test Nutshell Wallet
|
||||
run: |
|
||||
nix develop -i -L .#integration --command just nutshell-wallet-itest
|
||||
|
||||
Reference in New Issue
Block a user