|
| 1 | +# GitHub action to build software. |
| 2 | +# Linux builds include pre-built dependencies via containers. |
| 3 | +# The Windows and MacOS builds build dependencies each run. |
| 4 | + |
| 5 | +name: Build |
| 6 | +on: |
| 7 | + pull_request: |
| 8 | + workflow_dispatch: |
| 9 | + push: |
| 10 | + |
| 11 | +jobs: |
| 12 | + ubuntu_20_04_build: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + container: ghcr.io/rg2/xreg-deps-ubuntu-20.04:latest |
| 15 | + |
| 16 | + steps: |
| 17 | + - name: Checkout xreg repository master branch |
| 18 | + uses: actions/checkout@v2 |
| 19 | + with: |
| 20 | + repository: rg2/xreg |
| 21 | + path: ./xreg-git |
| 22 | + - name: Checkout this repo (Regi2D3D-IPCAI2020) |
| 23 | + uses: actions/checkout@v2 |
| 24 | + with: |
| 25 | + path: ./regi2d3d-ipcai2020 |
| 26 | + - name: Build xreg master branch |
| 27 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_xreg_cmake_build |
| 28 | + shell: bash |
| 29 | + - name: Build this repo (Regi2D3D-IPCAI2020) |
| 30 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_regi2d3d_ipcai2020_cmake_build |
| 31 | + shell: bash |
| 32 | + - name: Install packages needed to create distribution file |
| 33 | + run: ./xreg-git/dist/ubuntu_dist_pkgs |
| 34 | + shell: bash |
| 35 | + - name: Create distribution file |
| 36 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_make_dist ubuntu-20.04 |
| 37 | + shell: bash |
| 38 | + - name: Upload distribution as artifact |
| 39 | + uses: actions/upload-artifact@v2 |
| 40 | + with: |
| 41 | + name: ubuntu-20.04-build |
| 42 | + path: regi2d3d-ipcai2020-ubuntu-20.04.tar.gz |
| 43 | + |
| 44 | + ubuntu_18_04_build: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + container: ghcr.io/rg2/xreg-deps-ubuntu-18.04:latest |
| 47 | + |
| 48 | + steps: |
| 49 | + - name: Checkout xreg repository master branch |
| 50 | + uses: actions/checkout@v2 |
| 51 | + with: |
| 52 | + repository: rg2/xreg |
| 53 | + path: ./xreg-git |
| 54 | + - name: Checkout this repo (Regi2D3D-IPCAI2020) |
| 55 | + uses: actions/checkout@v2 |
| 56 | + with: |
| 57 | + path: ./regi2d3d-ipcai2020 |
| 58 | + - name: Build xreg master branch |
| 59 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_xreg_cmake_build |
| 60 | + shell: bash |
| 61 | + - name: Build this repo (Regi2D3D-IPCAI2020) |
| 62 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_regi2d3d_ipcai2020_cmake_build |
| 63 | + shell: bash |
| 64 | + - name: Install packages needed to create distribution file |
| 65 | + run: ./xreg-git/dist/ubuntu_dist_pkgs |
| 66 | + shell: bash |
| 67 | + - name: Create distribution file |
| 68 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_make_dist ubuntu-18.04 |
| 69 | + shell: bash |
| 70 | + - name: Upload distribution as artifact |
| 71 | + uses: actions/upload-artifact@v2 |
| 72 | + with: |
| 73 | + name: ubuntu-18.04-build |
| 74 | + path: regi2d3d-ipcai2020-ubuntu-18.04.tar.gz |
| 75 | + |
| 76 | + ubuntu_16_04_build: |
| 77 | + runs-on: ubuntu-latest |
| 78 | + container: ghcr.io/rg2/xreg-deps-ubuntu-16.04:latest |
| 79 | + |
| 80 | + steps: |
| 81 | + - name: Checkout xreg repository master branch |
| 82 | + uses: actions/checkout@v2 |
| 83 | + with: |
| 84 | + repository: rg2/xreg |
| 85 | + path: ./xreg-git |
| 86 | + - name: Checkout this repo (Regi2D3D-IPCAI2020) |
| 87 | + uses: actions/checkout@v2 |
| 88 | + with: |
| 89 | + path: ./regi2d3d-ipcai2020 |
| 90 | + - name: Build xreg master branch |
| 91 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_xreg_cmake_build |
| 92 | + shell: bash |
| 93 | + - name: Build this repo (Regi2D3D-IPCAI2020) |
| 94 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_regi2d3d_ipcai2020_cmake_build |
| 95 | + shell: bash |
| 96 | + - name: Install packages needed to create distribution file |
| 97 | + run: ./xreg-git/dist/ubuntu_dist_pkgs |
| 98 | + shell: bash |
| 99 | + - name: Create distribution file |
| 100 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_make_dist ubuntu-16.04 |
| 101 | + shell: bash |
| 102 | + - name: Upload distribution as artifact |
| 103 | + uses: actions/upload-artifact@v2 |
| 104 | + with: |
| 105 | + name: ubuntu-16.04-build |
| 106 | + path: regi2d3d-ipcai2020-ubuntu-16.04.tar.gz |
| 107 | + |
| 108 | + centos_7_build: |
| 109 | + runs-on: ubuntu-latest |
| 110 | + container: ghcr.io/rg2/xreg-deps-centos-7:latest |
| 111 | + |
| 112 | + steps: |
| 113 | + - name: Checkout xreg repository master branch |
| 114 | + uses: actions/checkout@v2 |
| 115 | + with: |
| 116 | + repository: rg2/xreg |
| 117 | + path: ./xreg-git |
| 118 | + - name: Checkout this repo (Regi2D3D-IPCAI2020) |
| 119 | + uses: actions/checkout@v2 |
| 120 | + with: |
| 121 | + path: ./regi2d3d-ipcai2020 |
| 122 | + - name: Build xreg master branch |
| 123 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_xreg_cmake_build |
| 124 | + shell: bash |
| 125 | + - name: Build this repo (Regi2D3D-IPCAI2020) |
| 126 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_regi2d3d_ipcai2020_cmake_build |
| 127 | + shell: bash |
| 128 | + - name: Install packages needed to create distribution file |
| 129 | + run: ./xreg-git/dist/centos_dist_pkgs |
| 130 | + shell: bash |
| 131 | + - name: Create distribution file |
| 132 | + run: ./regi2d3d-ipcai2020/.github/workflows/linux_make_dist centos-7 |
| 133 | + shell: bash |
| 134 | + - name: Upload distribution as artifact |
| 135 | + uses: actions/upload-artifact@v2 |
| 136 | + with: |
| 137 | + name: centos-7-build |
| 138 | + path: regi2d3d-ipcai2020-centos-7.tar.gz |
| 139 | + |
| 140 | + windows_build: |
| 141 | + runs-on: windows-2019 |
| 142 | + steps: |
| 143 | + - name: Checkout this repo (Regi2D3D-IPCAI2020) |
| 144 | + uses: actions/checkout@v2 |
| 145 | + with: |
| 146 | + path: regi2d3d-ipcai2020 |
| 147 | + - name: Setup Visual C++ environment |
| 148 | + uses: ilammy/msvc-dev-cmd@v1 |
| 149 | + - name: Cache xreg deps and xreg build |
| 150 | + id: xreg-deps-cache |
| 151 | + uses: actions/cache@v3 |
| 152 | + with: |
| 153 | + path: | |
| 154 | + xreg-git |
| 155 | + D:\usr\local |
| 156 | + D:\tmp\ninja-bin |
| 157 | + D:\tmp\cmake-3.22.2-windows-x86_64 |
| 158 | + D:\tmp\xreg_build |
| 159 | + key: ${{ runner.os }}-xreg-deps |
| 160 | + - name: Checkout xreg repository master branch |
| 161 | + if: steps.xreg-deps-cache.outputs.cache-hit != 'true' |
| 162 | + uses: actions/checkout@v2 |
| 163 | + with: |
| 164 | + repository: rg2/xreg |
| 165 | + path: xreg-git |
| 166 | + - name: Build xreg master branch and its dependencies |
| 167 | + if: steps.xreg-deps-cache.outputs.cache-hit != 'true' |
| 168 | + run: regi2d3d-ipcai2020\.github\workflows\win_xreg_build.cmd |
| 169 | + shell: cmd |
| 170 | + - name: Build this repo (Regi2D3D-IPCAI2020) |
| 171 | + run: regi2d3d-ipcai2020\.github\workflows\win_regi2d3d_ipcai2020_build.cmd |
| 172 | + shell: cmd |
| 173 | + - name: Create dist .zip file |
| 174 | + run: regi2d3d-ipcai2020\.github\workflows\win_regi2d3d_ipcai2020_make_dist.cmd |
| 175 | + shell: cmd |
| 176 | + - name: Upload distribution .zip file as artifact. |
| 177 | + uses: actions/upload-artifact@v2 |
| 178 | + with: |
| 179 | + name: win-64-build |
| 180 | + path: regi2d3d-ipcai2020-win64.zip |
| 181 | + |
| 182 | + #macos_build: |
| 183 | + # runs-on: macos-10.15 |
| 184 | + # |
| 185 | + # steps: |
| 186 | + # - name: Checkout xreg repository master branch |
| 187 | + # uses: actions/checkout@v2 |
| 188 | + # with: |
| 189 | + # repository: rg2/xreg |
| 190 | + # path: ./xreg-git |
| 191 | + # - name: Checkout this repo (Regi2D3D-IPCAI2020) |
| 192 | + # uses: actions/checkout@v2 |
| 193 | + # with: |
| 194 | + # path: ./regi2d3d-ipcai2020 |
| 195 | + # - name: Installing Ninja build tool |
| 196 | + # run: brew install ninja |
| 197 | + # - name: Building xreg master branch and its dependencies |
| 198 | + # run: XREG_INSTALL_DIR="$HOME/xreg_install" cd ./xreg-git && ./example_build_script_2 |
| 199 | + # shell: bash |
| 200 | + # - name: Building this repo |
| 201 | + # run: ./regi2d3d-ipcai2020/.github/workflows/mac_regi2d3d_ipcai2020_cmake_build |
| 202 | + # shell: bash |
| 203 | + # - name: Creating dist directory |
| 204 | + # run: mkdir regi2d3d-ipcai2020-macos-10.15 |
| 205 | + # shell: bash |
| 206 | + # - name: Creating distribution executables |
| 207 | + # run: python3 ./xreg-git/dist/make_macos_dist.py $HOME/ipcai2020_install regi2d3d-ipcai2020-macos-10.15 ./xreg_deps_install $HOME/xreg_install |
| 208 | + # shell: bash |
| 209 | + # - name: Packaging up files |
| 210 | + # run: ./regi2d3d-ipcai2020/.github/workflows/mac_make_dist |
| 211 | + # shell: bash |
| 212 | + # - uses: actions/upload-artifact@v2 |
| 213 | + # with: |
| 214 | + # name: macos-10.15-build |
| 215 | + # path: regi2d3d-ipcai2020-macos-10.15.tar.gz |
0 commit comments