sdk%fix(nix): source pygments-styles for Zensical
#158
Workflow file for this run
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: MSRV (1.85) | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-24.04 | |
| defaults: | |
| run: | |
| shell: nix develop ./contrib/nix#ci --command bash -eo pipefail {0} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 100 | |
| - name: Run pull request checks | |
| if: github.event_name == 'pull_request' | |
| shell: bash | |
| run: | | |
| source .github/ci.env | |
| commits=${{ github.event.pull_request.commits }} | |
| if [ "${commits}" -gt "${MAX_PR_COMMITS}" ]; then | |
| echo "::error::PR has ${commits} commits (limit: ${MAX_PR_COMMITS})" | |
| exit 1 | |
| fi | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v22 | |
| with: | |
| extra-conf: | | |
| extra-substituters = https://dashpay-base-sdk.cachix.org | |
| extra-trusted-public-keys = dashpay-base-sdk.cachix.org-1:TAoDyYL2e60lUEG8n10gvIZmujM5rJAhaG613fNfOWI= | |
| - name: Cache Nix | |
| uses: cachix/cachix-action@v17 | |
| with: | |
| name: dashpay-base-sdk | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| skipAddingSubstituter: true | |
| - name: Restore cargo registry | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: cargo-deps-${{ hashFiles('Cargo.lock', 'docs/samples/Cargo.lock') }} | |
| restore-keys: cargo-deps- | |
| - name: Manage CodeQL packs | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.codeql | |
| key: codeql-packs-${{ hashFiles('maint/codeql/*/codeql-pack.lock.yml') }} | |
| - name: Run linters | |
| run: | | |
| python3 maint/lint_all.py --exclude lint_codeql | |
| python3 maint/lint/lint_codeql.py check | |
| - name: Run CodeQL | |
| run: python3 maint/lint/lint_codeql.py run --lang=rust --with-suite=rust-security-and-quality | |
| - name: Check PR commit messages | |
| if: github.event_name == 'pull_request' | |
| run: > | |
| python3 maint/lint/lint_unconv.py | |
| -r "${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}" | |
| build: | |
| name: Build and test | |
| runs-on: ubuntu-24.04-arm | |
| defaults: | |
| run: | |
| shell: nix develop ./contrib/nix#ci --command bash -eo pipefail {0} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Run pull request checks | |
| if: github.event_name == 'pull_request' | |
| shell: bash | |
| run: | | |
| source .github/ci.env | |
| commits=${{ github.event.pull_request.commits }} | |
| if [ "${commits}" -gt "${MAX_PR_COMMITS}" ]; then | |
| echo "::error::PR has ${commits} commits (limit: ${MAX_PR_COMMITS})" | |
| exit 1 | |
| fi | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v22 | |
| with: | |
| extra-conf: | | |
| extra-substituters = https://dashpay-base-sdk.cachix.org | |
| extra-trusted-public-keys = dashpay-base-sdk.cachix.org-1:TAoDyYL2e60lUEG8n10gvIZmujM5rJAhaG613fNfOWI= | |
| - name: Cache Nix | |
| uses: cachix/cachix-action@v17 | |
| with: | |
| name: dashpay-base-sdk | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| skipAddingSubstituter: true | |
| - name: Restore cargo registry | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: cargo-deps-${{ hashFiles('Cargo.lock', 'docs/samples/Cargo.lock') }} | |
| restore-keys: cargo-deps- | |
| - name: Manage build artifacts | |
| uses: actions/cache@v5 | |
| with: | |
| path: target | |
| key: cargo-build-msrv-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }} | |
| restore-keys: | | |
| cargo-build-msrv-${{ runner.os }}-${{ runner.arch }}- | |
| - name: Build workspace | |
| run: | | |
| export RUSTC="$TOOLCHAIN_MSRV/bin/rustc" | |
| export RUSTDOC="$TOOLCHAIN_MSRV/bin/rustdoc" | |
| "$TOOLCHAIN_MSRV/bin/cargo" build --workspace --exclude dash-pow --features full | |
| "$TOOLCHAIN_MSRV/bin/cargo" build -p dash-pow --features std,aes_hw | |
| - name: Test workspace | |
| run: | | |
| export RUSTC="$TOOLCHAIN_MSRV/bin/rustc" | |
| export RUSTDOC="$TOOLCHAIN_MSRV/bin/rustdoc" | |
| "$TOOLCHAIN_MSRV/bin/cargo" test --workspace --exclude dash-pow --features full | |
| "$TOOLCHAIN_MSRV/bin/cargo" test -p dash-pow --features std,aes_hw |