|
|
@@ -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
|