|
| 1 | +name: Pre-checks |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + run-win10: |
| 7 | + |
| 8 | + runs-on: windows-latest |
| 9 | + name: Win10 -> Pre-checks |
| 10 | + |
| 11 | + steps: |
| 12 | + - name: Clone repository |
| 13 | + uses: actions/checkout@v2 |
| 14 | + with: |
| 15 | + submodules: recursive |
| 16 | + |
| 17 | + - name: DiligentCore format validation |
| 18 | + shell: cmd |
| 19 | + run: | |
| 20 | + cd "%GITHUB_WORKSPACE%\DiligentCore\BuildTools\FormatValidation" |
| 21 | + validate_format_win.bat |
| 22 | +
|
| 23 | + - name: DiligentTools format validation |
| 24 | + shell: cmd |
| 25 | + run: | |
| 26 | + cd "%GITHUB_WORKSPACE%\DiligentTools\BuildTools\FormatValidation" |
| 27 | + validate_format_win.bat |
| 28 | +
|
| 29 | + - name: DiligentFX format validation |
| 30 | + shell: cmd |
| 31 | + run: | |
| 32 | + cd "%GITHUB_WORKSPACE%\DiligentFX\BuildTools\FormatValidation" |
| 33 | + validate_format_win.bat |
| 34 | +
|
| 35 | + - name: DiligentSamples format validation |
| 36 | + shell: cmd |
| 37 | + run: | |
| 38 | + cd "%GITHUB_WORKSPACE%\DiligentSamples\BuildTools\FormatValidation" |
| 39 | + validate_format_win.bat |
| 40 | +
|
| 41 | + run-linux: |
| 42 | + |
| 43 | + runs-on: ubuntu-latest |
| 44 | + name: Linux -> Pre-checks |
| 45 | + |
| 46 | + steps: |
| 47 | + - name: Clone repository |
| 48 | + uses: actions/checkout@v2 |
| 49 | + with: |
| 50 | + submodules: recursive |
| 51 | + |
| 52 | + - name: DiligentCore format validation |
| 53 | + shell: bash |
| 54 | + run: | |
| 55 | + cd $GITHUB_WORKSPACE/DiligentCore/BuildTools/FormatValidation |
| 56 | + ./validate_format_linux.sh |
| 57 | +
|
| 58 | + - name: DiligentTools format validation |
| 59 | + shell: bash |
| 60 | + run: | |
| 61 | + cd $GITHUB_WORKSPACE/DiligentTools/BuildTools/FormatValidation |
| 62 | + ./validate_format_linux.sh |
| 63 | +
|
| 64 | + - name: DiligentFX format validation |
| 65 | + shell: bash |
| 66 | + run: | |
| 67 | + cd $GITHUB_WORKSPACE/DiligentFX/BuildTools/FormatValidation |
| 68 | + ./validate_format_linux.sh |
| 69 | +
|
| 70 | + - name: DiligentSamples format validation |
| 71 | + shell: bash |
| 72 | + run: | |
| 73 | + cd $GITHUB_WORKSPACE/DiligentSamples/BuildTools/FormatValidation |
| 74 | + ./validate_format_linux.sh |
| 75 | +
|
| 76 | + run-macos: |
| 77 | + |
| 78 | + runs-on: macos-latest |
| 79 | + name: MacOS -> Pre-Checks |
| 80 | + |
| 81 | + steps: |
| 82 | + - name: Clone repository |
| 83 | + uses: actions/checkout@v2 |
| 84 | + with: |
| 85 | + submodules: recursive |
| 86 | + |
| 87 | + - name: DiligentCore format validation |
| 88 | + shell: bash |
| 89 | + run: | |
| 90 | + cd $GITHUB_WORKSPACE/DiligentCore/BuildTools/FormatValidation |
| 91 | + ./validate_format_mac.sh |
| 92 | +
|
| 93 | + - name: DiligentTools format validation |
| 94 | + shell: bash |
| 95 | + run: | |
| 96 | + cd $GITHUB_WORKSPACE/DiligentTools/BuildTools/FormatValidation |
| 97 | + ./validate_format_mac.sh |
| 98 | +
|
| 99 | + - name: DiligentFX format validation |
| 100 | + shell: bash |
| 101 | + run: | |
| 102 | + cd $GITHUB_WORKSPACE/DiligentFX/BuildTools/FormatValidation |
| 103 | + ./validate_format_mac.sh |
| 104 | +
|
| 105 | + - name: DiligentSamples format validation |
| 106 | + shell: bash |
| 107 | + run: | |
| 108 | + cd $GITHUB_WORKSPACE/DiligentSamples/BuildTools/FormatValidation |
| 109 | + ./validate_format_mac.sh |
0 commit comments