|
@@ -21,8 +21,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "nightly"
|
|
|
- name: Cargo fmt
|
|
- name: Cargo fmt
|
|
|
run: |
|
|
run: |
|
|
|
nix develop -i -L .#nightly --command bash -c '
|
|
nix develop -i -L .#nightly --command bash -c '
|
|
@@ -53,8 +57,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Run example
|
|
- name: Run example
|
|
|
run: nix develop -i -L .#stable --command cargo r --example ${{ matrix.build-args }}
|
|
run: nix develop -i -L .#stable --command cargo r --example ${{ matrix.build-args }}
|
|
|
|
|
|
|
@@ -135,8 +143,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Clippy
|
|
- name: Clippy
|
|
|
run: nix develop -i -L .#stable --command cargo clippy ${{ matrix.build-args }} -- -D warnings
|
|
run: nix develop -i -L .#stable --command cargo clippy ${{ matrix.build-args }} -- -D warnings
|
|
|
- name: Test
|
|
- name: Test
|
|
@@ -162,8 +174,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Test
|
|
- name: Test
|
|
|
run: nix develop -i -L .#stable --command just itest ${{ matrix.database }}
|
|
run: nix develop -i -L .#stable --command just itest ${{ matrix.database }}
|
|
|
|
|
|
|
@@ -187,8 +203,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Clippy
|
|
- name: Clippy
|
|
|
run: nix develop -i -L .#stable --command cargo clippy -- -D warnings
|
|
run: nix develop -i -L .#stable --command cargo clippy -- -D warnings
|
|
|
- name: Test fake auth mint
|
|
- name: Test fake auth mint
|
|
@@ -212,8 +232,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Test fake mint
|
|
- name: Test fake mint
|
|
|
run: nix develop -i -L .#stable --command just test-pure ${{ matrix.database }}
|
|
run: nix develop -i -L .#stable --command just test-pure ${{ matrix.database }}
|
|
|
- name: Test mint
|
|
- name: Test mint
|
|
@@ -238,8 +262,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Test
|
|
- name: Test
|
|
|
run: nix develop -i -L .#stable --command just itest-payment-processor ${{matrix.ln}}
|
|
run: nix develop -i -L .#stable --command just itest-payment-processor ${{matrix.ln}}
|
|
|
|
|
|
|
@@ -274,8 +302,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "msrv"
|
|
|
- name: Build
|
|
- name: Build
|
|
|
run: nix develop -i -L .#msrv --command cargo build ${{ matrix.build-args }}
|
|
run: nix develop -i -L .#msrv --command cargo build ${{ matrix.build-args }}
|
|
|
|
|
|
|
@@ -302,8 +334,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Build cdk and binding
|
|
- name: Build cdk and binding
|
|
|
run: nix develop -i -L ".#${{ matrix.rust }}" --command cargo build ${{ matrix.build-args }} --target ${{ matrix.target }}
|
|
run: nix develop -i -L ".#${{ matrix.rust }}" --command cargo build ${{ matrix.build-args }} --target ${{ matrix.target }}
|
|
|
|
|
|
|
@@ -330,8 +366,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "msrv"
|
|
|
- name: Build cdk wasm
|
|
- name: Build cdk wasm
|
|
|
run: nix develop -i -L ".#${{ matrix.rust }}" --command cargo build ${{ matrix.build-args }} --target ${{ matrix.target }}
|
|
run: nix develop -i -L ".#${{ matrix.rust }}" --command cargo build ${{ matrix.build-args }} --target ${{ matrix.target }}
|
|
|
|
|
|
|
@@ -351,8 +391,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Start Keycloak with Backup
|
|
- name: Start Keycloak with Backup
|
|
|
run: |
|
|
run: |
|
|
|
docker compose -f misc/keycloak/docker-compose-recover.yml up -d
|
|
docker compose -f misc/keycloak/docker-compose-recover.yml up -d
|
|
@@ -377,8 +421,12 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Run doc tests
|
|
- name: Run doc tests
|
|
|
run: nix develop -i -L .#stable --command cargo test --doc
|
|
run: nix develop -i -L .#stable --command cargo test --doc
|
|
|
|
|
|
|
@@ -392,7 +440,11 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
- name: Install Nix
|
|
- name: Install Nix
|
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
uses: DeterminateSystems/nix-installer-action@v17
|
|
|
|
|
+ - name: Nix Cache
|
|
|
|
|
+ uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
- name: Rust Cache
|
|
- name: Rust Cache
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ shared-key: "stable"
|
|
|
- name: Check docs with strict warnings
|
|
- name: Check docs with strict warnings
|
|
|
run: nix develop -i -L .#stable --command just docs-strict
|
|
run: nix develop -i -L .#stable --command just docs-strict
|