refactor: consume cardano-ledger-read from external package (#5204) #9842
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-release: | |
| name: "Build Release Package (Windows)" | |
| runs-on: [self-hosted, linux, x86_64, cardano-wallet] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cross-compile Windows release package | |
| run: | | |
| rm -rf ./result/* | |
| nix build --quiet -o result/windows .#ci.artifacts.win64.release | |
| - name: Upload release artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows-release-package | |
| path: result/windows/ | |
| build-gate-win-tests: | |
| name: "Build Gate (Windows Tests)" | |
| runs-on: [self-hosted, linux, x86_64, cardano-wallet] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cross-compile all Windows test bundles | |
| run: >- | |
| nix build --no-link --quiet | |
| .#ci.artifacts.win64.tests.wallet-unit | |
| .#ci.artifacts.win64.tests.wallet-primitive | |
| .#ci.artifacts.win64.tests.wallet-secrets | |
| .#ci.artifacts.win64.tests.wallet-network-layer | |
| .#ci.artifacts.win64.tests.wallet-test-utils | |
| .#ci.artifacts.win64.tests.wallet-launcher | |
| .#ci.artifacts.win64.tests.cardano-numeric | |
| .#ci.artifacts.win64.tests.cardano-balance-tx | |
| .#ci.artifacts.win64.tests.wallet-blackbox-benchmarks | |
| .#ci.artifacts.win64.tests.delta-chain | |
| .#ci.artifacts.win64.tests.delta-store | |
| .#ci.artifacts.win64.tests.delta-table | |
| .#ci.artifacts.win64.tests.delta-types | |
| .#ci.artifacts.win64.tests.std-gen-seed | |
| .#ci.artifacts.win64.tests.wai-middleware-logging | |
| upload-win-test: | |
| name: "Upload ${{ matrix.name }}" | |
| needs: build-gate-win-tests | |
| runs-on: [self-hosted, linux, x86_64, cardano-wallet] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: wallet-unit | |
| - name: wallet-primitive | |
| - name: wallet-secrets | |
| - name: wallet-network-layer | |
| - name: wallet-test-utils | |
| - name: wallet-launcher | |
| # wallet-application-tls: skipped pending #5110 | |
| - name: cardano-numeric | |
| - name: cardano-balance-tx | |
| - name: wallet-blackbox-benchmarks | |
| - name: delta-chain | |
| - name: delta-store | |
| - name: delta-table | |
| - name: delta-types | |
| - name: std-gen-seed | |
| - name: wai-middleware-logging | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build (from cache) | |
| run: nix build --quiet .#ci.artifacts.win64.tests.${{ matrix.name }} -o result | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: win-test-${{ matrix.name }} | |
| path: result/ | |
| unit-tests: | |
| name: ${{ matrix.name }} | |
| needs: upload-win-test | |
| runs-on: [self-hosted, Windows, x64, cardano-wallet-win] | |
| env: | |
| LOCAL_CLUSTER_CONFIGS: test\data\cluster-configs | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # --- wallet-unit sub-splits --- | |
| - name: "wallet-unit / Byron + CLI" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.Byron./" | |
| --match "/Cardano.CLI/" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / DB.Sqlite + Pool" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.DB./" | |
| --match "/Cardano.Pool./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / Address" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.Wallet.Address./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / Api" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.Wallet.Api./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / Balance" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.Wallet.Balance./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / DB" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.Wallet.DB./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / Primitive" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.Wallet.Primitive./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / Shelley" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.Wallet.Shelley./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / Other Wallet" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Cardano.Wallet./" | |
| --skip "/Cardano.Wallet.Address./" | |
| --skip "/Cardano.Wallet.Api./" | |
| --skip "/Cardano.Wallet.Balance./" | |
| --skip "/Cardano.Wallet.DB./" | |
| --skip "/Cardano.Wallet.Primitive./" | |
| --skip "/Cardano.Wallet.Shelley./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-unit / Control + Data" | |
| artifact: win-test-wallet-unit | |
| command: >- | |
| .\unit.exe | |
| --match "/Control./" | |
| --match "/Data./" | |
| --color -j1 +RTS -M2G -s -N2 -RTS | |
| # --- standalone suites (test.exe) --- | |
| - name: "wallet-primitive" | |
| artifact: win-test-wallet-primitive | |
| command: .\test.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-secrets" | |
| artifact: win-test-wallet-secrets | |
| command: .\test.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "cardano-balance-tx" | |
| artifact: win-test-cardano-balance-tx | |
| command: .\test.exe --color +RTS -M2G -s -N2 -RTS | |
| # --- standalone suites (unit.exe) --- | |
| - name: "wallet-network-layer" | |
| artifact: win-test-wallet-network-layer | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-test-utils" | |
| artifact: win-test-wallet-test-utils | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-launcher" | |
| artifact: win-test-wallet-launcher | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| # wallet-application-tls: skipped pending #5110 (TLS CertificateUnknown on Windows) | |
| - name: "cardano-numeric" | |
| artifact: win-test-cardano-numeric | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "wallet-blackbox-benchmarks" | |
| artifact: win-test-wallet-blackbox-benchmarks | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "delta-chain" | |
| artifact: win-test-delta-chain | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "delta-store" | |
| artifact: win-test-delta-store | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "delta-table" | |
| artifact: win-test-delta-table | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "delta-types" | |
| artifact: win-test-delta-types | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "std-gen-seed" | |
| artifact: win-test-std-gen-seed | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| - name: "wai-middleware-logging" | |
| artifact: win-test-wai-middleware-logging | |
| command: .\unit.exe --color +RTS -M2G -s -N2 -RTS | |
| steps: | |
| - name: Download test artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: test-bundle | |
| - name: Run tests | |
| working-directory: test-bundle | |
| run: ${{ matrix.command }} |