night #24
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: night | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Everyday at 00:00 UTC | |
| - cron: '0 0 * * *' | |
| env: | |
| MAIN_PYTHON_VERSION: '3.10' | |
| DOCUMENTATION_CNAME: 'multi-touch-cockpit.examples.scade.docs.pyansys.com' | |
| LIBRARY_NAME: 'ansys-scade-examples-multi-touch-cockpit' | |
| ARTIFACT_NAME: 'MultitouchCockpitStandaloneExecutable' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| doc-style: | |
| name: "Documentation style" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ansys/actions/doc-style@v10 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| doc-build: | |
| name: "Build documentation" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| needs: doc-style | |
| steps: | |
| - uses: ansys/actions/doc-build@v10 | |
| with: | |
| python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
| skip-install: true | |
| use-python-cache: false | |
| dependencies: "texlive-fonts-extra qpdf" | |
| check-links: false | |
| rules-checker: | |
| name: "Rules Checker" | |
| runs-on: [self-hosted, 'SCADE'] | |
| strategy: | |
| matrix: | |
| os: [windows-latest] | |
| scade-version: ['24.2'] | |
| fail-fast: false | |
| steps: | |
| - name: "Install Git and clone project" | |
| uses: actions/checkout@v4 | |
| - name: "Get SCADE installation directory" | |
| uses: ansys/scade-actions/get-scade-dir@v2 | |
| id: get-scade-dir | |
| with: | |
| scade-version: "24.2" | |
| - name: "Check Rules" | |
| uses: ansys/scade-actions/[email protected] | |
| with: | |
| scade-dir: ${{ steps.get-scade-dir.outputs.scade-directory }} | |
| project: 'model/scade-suite/GlassCockpit.etp' | |
| configuration: 'RulesChecker' | |
| standalone-executable: | |
| name: "Standalone Executable" | |
| runs-on: [self-hosted, 'SCADE'] | |
| strategy: | |
| matrix: | |
| os: [windows-latest] | |
| scade-version: ['24.2'] | |
| fail-fast: false | |
| needs: [rules-checker] | |
| steps: | |
| - name: "Install Git and clone project" | |
| uses: actions/checkout@v4 | |
| - name: "Get SCADE installation directory" | |
| uses: ansys/scade-actions/get-scade-dir@v2 | |
| id: get-scade-dir | |
| with: | |
| scade-version: "24.2" | |
| - name: "Generate Standalone" | |
| uses: ansys/scade-actions/suite-code@v2 | |
| with: | |
| scade-dir: ${{ steps.get-scade-dir.outputs.scade-directory }} | |
| project: 'model/scade-suite/GlassCockpit.etp' | |
| configuration: 'Standalone' | |
| build: true | |
| - name: "Upload folder to artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }} | |
| path: ./model/scade-suite/Standalone/standalone | |
| retention-days: 7 | |
| if-no-files-found: error | |
| doc-deploy-dev: | |
| name: "Deploy development documentation" | |
| runs-on: ubuntu-latest | |
| needs: [standalone-executable, doc-build] | |
| steps: | |
| - uses: ansys/actions/doc-deploy-dev@v10 | |
| with: | |
| doc-artifact-name: 'documentation-html' | |
| cname: ${{ env.DOCUMENTATION_CNAME }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} | |
| bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} |