|
| 1 | + |
| 2 | +# PlayzerX continuous integration workflow |
| 3 | +name: PlayzerX-CI |
| 4 | + |
| 5 | +# Controls when the action will run. Triggers the workflow on push or pull request |
| 6 | +# events but only for the master branch |
| 7 | +on: |
| 8 | + push: |
| 9 | + branches: [ master ] |
| 10 | + pull_request: |
| 11 | + branches: [ master ] |
| 12 | + |
| 13 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 14 | +jobs: |
| 15 | + # This workflow contains a single job called "build-windows" |
| 16 | + build-windows-x86: |
| 17 | + # The type of runner that the job will run on |
| 18 | + runs-on: windows-2019 |
| 19 | + |
| 20 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 21 | + steps: |
| 22 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 23 | + - uses: actions/checkout@v4 |
| 24 | + |
| 25 | + - name: setup-msbuild |
| 26 | + uses: microsoft/setup-msbuild@v2 |
| 27 | + |
| 28 | + # Runs a single command using the runners shell |
| 29 | + - name: Build Debug Win32 |
| 30 | + run: msbuild PlayzerX-All.sln /p:Configuration=Debug /p:Platform=Win32 |
| 31 | + |
| 32 | + # Runs a single command using the runners shell |
| 33 | + - name: Build Release Win32 |
| 34 | + run: msbuild PlayzerX-All.sln /p:Configuration=Release /p:Platform=Win32 |
| 35 | + |
| 36 | + # This workflow contains a single job called "build-windows" |
| 37 | + build-windows-x64: |
| 38 | + # The type of runner that the job will run on |
| 39 | + runs-on: windows-2019 |
| 40 | + |
| 41 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 42 | + steps: |
| 43 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + |
| 46 | + - name: setup-msbuild |
| 47 | + uses: microsoft/setup-msbuild@v2 |
| 48 | + |
| 49 | + # Runs a single command using the runners shell |
| 50 | + - name: Build Debug x64 |
| 51 | + run: msbuild PlayzerX-All.sln /p:Configuration=Debug /p:Platform=x64 |
| 52 | + |
| 53 | + # Runs a single command using the runners shell |
| 54 | + - name: Build Release x64 |
| 55 | + run: msbuild PlayzerX-All.sln /p:Configuration=Release /p:Platform=x64 |
| 56 | + |
| 57 | + # This workflow contains a single job called "build-ubuntu" |
| 58 | + build-ubuntu-20-04: |
| 59 | + # The type of runner that the job will run on |
| 60 | + runs-on: ubuntu-20.04 |
| 61 | + |
| 62 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 63 | + steps: |
| 64 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 65 | + - uses: actions/checkout@v4 |
| 66 | + |
| 67 | + - name: Install libopencv-dev |
| 68 | + run: | |
| 69 | + sudo apt-get update |
| 70 | + sudo apt-get install libopencv-dev |
| 71 | + |
| 72 | + # Runs a single command using the runners shell |
| 73 | + - name: Build delivery folder |
| 74 | + run: ./tools/linux_build_repo.sh |
| 75 | + |
| 76 | + build-ubuntu-22-04: |
| 77 | + # The type of runner that the job will run on |
| 78 | + runs-on: ubuntu-22.04 |
| 79 | + |
| 80 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 81 | + steps: |
| 82 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 83 | + - uses: actions/checkout@v4 |
| 84 | + |
| 85 | + - name: Install libopencv-dev |
| 86 | + run: | |
| 87 | + sudo apt-get update |
| 88 | + sudo apt-get install libopencv-dev |
| 89 | + |
| 90 | + # Runs a single command using the runners shell |
| 91 | + - name: Build delivery folder |
| 92 | + run: ./tools/linux_build_repo.sh |
0 commit comments