Formatting #816
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: Build C++ utility | |
| on: | |
| push: | |
| paths: | |
| - 'src/**/*.cpp' | |
| - '.github/workflows/*.yml' | |
| pull_request: | |
| paths: | |
| - 'src/**/*.cpp' | |
| workflow_dispatch: | |
| jobs: | |
| checkout: | |
| runs-on: windows-latest | |
| outputs: | |
| checkout-path: ${{ steps.upload-artifact.outputs.artifact-path }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Upload checkout files as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: source | |
| path: src | |
| build: | |
| runs-on: windows-latest | |
| needs: checkout | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Compile and build source files | |
| shell: cmd | |
| run: | | |
| cmake -S . -B build | |
| cmake --build build | |
| build-documentation: | |
| needs: [build] | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Build docs | |
| shell: cmd | |
| run: | | |
| git pull --force | |
| py src/dieknow.py -docs | |
| echo "Generated documentation" | |
| - name: Commit and push generated documentation files | |
| run: | | |
| git config --global user.name "Ethan Chan" | |
| git config --global user.email "[email protected]" | |
| git add . -f | |
| git rm --cached *.pyc | |
| git commit -m "Automated documentation update" || echo "No changes to commit" | |
| git push https://[email protected]/eschan145/DieKnow.git dev | |
| env: | |
| # A GitHub PAT must be set up as an Actions secret in the repository | |
| GH_PAT: ${{ secrets.GH_PAT }} | |
| verify-libraries: | |
| needs: [build] | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Use ls to check DLLs | |
| shell: cmd | |
| run: | | |
| ls -l src/dlls/dieknow.dll |