sdk%feat(nix): add Nix-based devshells (and Docker wrapped counterparts), cross-compilation for Linux, Windows and macOS, x86_64 emulation for CodeQL on arm64 Linux #113
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: Deploy docs | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| paths: | |
| - pkgs/** | |
| - docs/** | |
| - .github/workflows/pages.yml | |
| - pyproject.toml | |
| - uv.lock | |
| - contrib/nix/** | |
| - rust-toolchain.toml | |
| - README.md | |
| - "**/README.md" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build site | |
| 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 | |
| persist-credentials: false | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v22 | |
| - name: Cache Nix | |
| uses: cachix/cachix-action@v17 | |
| with: | |
| name: dashpay-base-sdk | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| - name: Test documentation tooling | |
| run: pytest | |
| - name: Manage cargo registry | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: cargo-deps-${{ hashFiles('Cargo.lock', 'docs/samples/Cargo.lock') }} | |
| restore-keys: cargo-deps- | |
| - name: Build documentation | |
| run: python3 docs/build_docs.py build | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: docs/.site | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | |
| needs: build | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |