docs: fix README badge links and header layout #4
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - name: Checkout prohelp-cli | |
| uses: actions/checkout@v4 | |
| with: | |
| path: prohelp-cli | |
| - name: Checkout prohelp (path dependency) | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: openshellorg/prohelp | |
| path: prohelp | |
| - name: Setup D compiler | |
| uses: dlang-community/setup-dlang@v1 | |
| with: | |
| compiler: ldc-latest | |
| - name: Build library | |
| working-directory: prohelp-cli | |
| run: dub build -c library | |
| - name: Build demo binary | |
| working-directory: prohelp-cli | |
| run: dub build -c demo --build=release | |
| - name: Smoke demo | |
| working-directory: prohelp-cli | |
| shell: bash | |
| run: | | |
| if [ -f prohelp-cli-demo.exe ]; then BIN=./prohelp-cli-demo.exe; else BIN=./prohelp-cli-demo; fi | |
| "$BIN" --help || "$BIN" ? |