| 1 | name: ci |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | push: |
| 6 | branches: |
| 7 | - master |
| 8 | workflow_dispatch: |
| 9 | |
| 10 | # This cancels older workflow runs on pull requests while ensuring that there |
| 11 | # are no concurrency limits on pushes and manual workflow dispatches. |
| 12 | concurrency: |
| 13 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} |
| 14 | cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
| 15 | |
| 16 | jobs: |
| 17 | aarch64-freebsd-debug: |
| 18 | if: github.event_name != 'pull_request' |
| 19 | runs-on: [self-hosted, aarch64-freebsd] |
| 20 | steps: |
| 21 | - name: Checkout |
| 22 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 23 | with: |
| 24 | fetch-depth: 0 |
| 25 | - name: Build and Test |
| 26 | run: sh ci/aarch64-freebsd-debug.sh |
| 27 | timeout-minutes: 360 |
| 28 | aarch64-freebsd-release: |
| 29 | if: github.event_name != 'pull_request' |
| 30 | runs-on: [self-hosted, aarch64-freebsd] |
| 31 | steps: |
| 32 | - name: Checkout |
| 33 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 34 | with: |
| 35 | fetch-depth: 0 |
| 36 | - name: Build and Test |
| 37 | run: sh ci/aarch64-freebsd-release.sh |
| 38 | timeout-minutes: 300 |
| 39 | |
| 40 | aarch64-linux-debug: |
| 41 | runs-on: [self-hosted, aarch64-linux] |
| 42 | steps: |
| 43 | - name: Checkout |
| 44 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 45 | with: |
| 46 | fetch-depth: 0 |
| 47 | - name: Build and Test |
| 48 | run: sh ci/aarch64-linux-debug.sh |
| 49 | timeout-minutes: 240 |
| 50 | aarch64-linux-release: |
| 51 | runs-on: [self-hosted, aarch64-linux] |
| 52 | steps: |
| 53 | - name: Checkout |
| 54 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 55 | with: |
| 56 | fetch-depth: 0 |
| 57 | - name: Build and Test |
| 58 | run: sh ci/aarch64-linux-release.sh |
| 59 | timeout-minutes: 180 |
| 60 | |
| 61 | aarch64-netbsd-debug: |
| 62 | if: github.event_name != 'pull_request' |
| 63 | runs-on: [self-hosted, aarch64-netbsd] |
| 64 | steps: |
| 65 | - name: Checkout |
| 66 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 67 | with: |
| 68 | fetch-depth: 0 |
| 69 | - name: Build and Test |
| 70 | run: sh ci/aarch64-netbsd-debug.sh |
| 71 | timeout-minutes: 360 |
| 72 | aarch64-netbsd-release: |
| 73 | if: github.event_name != 'pull_request' |
| 74 | runs-on: [self-hosted, aarch64-netbsd] |
| 75 | steps: |
| 76 | - name: Checkout |
| 77 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 78 | with: |
| 79 | fetch-depth: 0 |
| 80 | - name: Build and Test |
| 81 | run: sh ci/aarch64-netbsd-release.sh |
| 82 | timeout-minutes: 300 |
| 83 | |
| 84 | aarch64-macos-debug: |
| 85 | runs-on: [self-hosted, aarch64-macos] |
| 86 | steps: |
| 87 | - name: Checkout |
| 88 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 89 | with: |
| 90 | fetch-depth: 0 |
| 91 | - name: Build and Test |
| 92 | run: sh ci/aarch64-macos-debug.sh |
| 93 | timeout-minutes: 240 |
| 94 | aarch64-macos-release: |
| 95 | runs-on: [self-hosted, aarch64-macos] |
| 96 | steps: |
| 97 | - name: Checkout |
| 98 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 99 | with: |
| 100 | fetch-depth: 0 |
| 101 | - name: Build and Test |
| 102 | run: sh ci/aarch64-macos-release.sh |
| 103 | timeout-minutes: 180 |
| 104 | |
| 105 | loongarch64-linux-debug: |
| 106 | runs-on: [self-hosted, loongarch64-linux] |
| 107 | steps: |
| 108 | - name: Checkout |
| 109 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 110 | with: |
| 111 | fetch-depth: 0 |
| 112 | - name: Build and Test |
| 113 | run: sh ci/loongarch64-linux-debug.sh |
| 114 | timeout-minutes: 300 |
| 115 | loongarch64-linux-release: |
| 116 | runs-on: [self-hosted, loongarch64-linux] |
| 117 | steps: |
| 118 | - name: Checkout |
| 119 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 120 | with: |
| 121 | fetch-depth: 0 |
| 122 | - name: Build and Test |
| 123 | run: sh ci/loongarch64-linux-release.sh |
| 124 | timeout-minutes: 180 |
| 125 | |
| 126 | powerpc64le-linux-debug: |
| 127 | runs-on: [self-hosted, powerpc64le-linux] |
| 128 | steps: |
| 129 | - name: Checkout |
| 130 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 131 | with: |
| 132 | fetch-depth: 0 |
| 133 | - name: Build and Test |
| 134 | run: sh ci/powerpc64le-linux-debug.sh |
| 135 | timeout-minutes: 420 |
| 136 | powerpc64le-linux-release: |
| 137 | runs-on: [self-hosted, powerpc64le-linux] |
| 138 | steps: |
| 139 | - name: Checkout |
| 140 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 141 | with: |
| 142 | fetch-depth: 0 |
| 143 | - name: Build and Test |
| 144 | run: sh ci/powerpc64le-linux-release.sh |
| 145 | timeout-minutes: 240 |
| 146 | |
| 147 | s390x-linux-debug: |
| 148 | runs-on: [self-hosted, s390x-linux] |
| 149 | steps: |
| 150 | - name: Checkout |
| 151 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 152 | with: |
| 153 | fetch-depth: 0 |
| 154 | - name: Build and Test |
| 155 | run: sh ci/s390x-linux-debug.sh |
| 156 | timeout-minutes: 480 |
| 157 | s390x-linux-release: |
| 158 | runs-on: [self-hosted, s390x-linux] |
| 159 | steps: |
| 160 | - name: Checkout |
| 161 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 162 | with: |
| 163 | fetch-depth: 0 |
| 164 | - name: Build and Test |
| 165 | run: sh ci/s390x-linux-release.sh |
| 166 | timeout-minutes: 300 |
| 167 | |
| 168 | x86_64-freebsd-debug: |
| 169 | runs-on: [self-hosted, x86_64-freebsd] |
| 170 | steps: |
| 171 | - name: Checkout |
| 172 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 173 | with: |
| 174 | fetch-depth: 0 |
| 175 | - name: Build and Test |
| 176 | run: sh ci/x86_64-freebsd-debug.sh |
| 177 | timeout-minutes: 120 |
| 178 | x86_64-freebsd-release: |
| 179 | runs-on: [self-hosted, x86_64-freebsd] |
| 180 | steps: |
| 181 | - name: Checkout |
| 182 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 183 | with: |
| 184 | fetch-depth: 0 |
| 185 | - name: Build and Test |
| 186 | run: sh ci/x86_64-freebsd-release.sh |
| 187 | timeout-minutes: 120 |
| 188 | |
| 189 | x86_64-linux-debug: |
| 190 | runs-on: [self-hosted, x86_64-linux] |
| 191 | steps: |
| 192 | - name: Checkout |
| 193 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 194 | with: |
| 195 | fetch-depth: 0 |
| 196 | - name: Build and Test |
| 197 | run: sh ci/x86_64-linux-debug.sh |
| 198 | timeout-minutes: 180 |
| 199 | x86_64-linux-debug-llvm: |
| 200 | runs-on: [self-hosted, x86_64-linux] |
| 201 | steps: |
| 202 | - name: Checkout |
| 203 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 204 | with: |
| 205 | fetch-depth: 0 |
| 206 | - name: Build and Test |
| 207 | run: sh ci/x86_64-linux-debug-llvm.sh |
| 208 | timeout-minutes: 420 |
| 209 | x86_64-linux-release: |
| 210 | runs-on: [self-hosted, x86_64-linux] |
| 211 | steps: |
| 212 | - name: Checkout |
| 213 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 214 | with: |
| 215 | fetch-depth: 0 |
| 216 | - name: Build and Test |
| 217 | run: sh ci/x86_64-linux-release.sh |
| 218 | timeout-minutes: 420 |
| 219 | |
| 220 | x86_64-netbsd-debug: |
| 221 | runs-on: [self-hosted, x86_64-netbsd] |
| 222 | steps: |
| 223 | - name: Checkout |
| 224 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 225 | with: |
| 226 | fetch-depth: 0 |
| 227 | - name: Build and Test |
| 228 | run: sh ci/x86_64-netbsd-debug.sh |
| 229 | timeout-minutes: 120 |
| 230 | x86_64-netbsd-release: |
| 231 | runs-on: [self-hosted, x86_64-netbsd] |
| 232 | steps: |
| 233 | - name: Checkout |
| 234 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 235 | with: |
| 236 | fetch-depth: 0 |
| 237 | - name: Build and Test |
| 238 | run: sh ci/x86_64-netbsd-release.sh |
| 239 | timeout-minutes: 120 |
| 240 | |
| 241 | x86_64-openbsd-debug: |
| 242 | runs-on: [self-hosted, x86_64-openbsd] |
| 243 | steps: |
| 244 | - name: Checkout |
| 245 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 246 | with: |
| 247 | fetch-depth: 0 |
| 248 | - name: Build and Test |
| 249 | run: sh ci/x86_64-openbsd-debug.sh |
| 250 | timeout-minutes: 120 |
| 251 | x86_64-openbsd-release: |
| 252 | runs-on: [self-hosted, x86_64-openbsd] |
| 253 | steps: |
| 254 | - name: Checkout |
| 255 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 256 | with: |
| 257 | fetch-depth: 0 |
| 258 | - name: Build and Test |
| 259 | run: sh ci/x86_64-openbsd-release.sh |
| 260 | timeout-minutes: 120 |
| 261 | |
| 262 | x86_64-windows-debug: |
| 263 | runs-on: [self-hosted, x86_64-windows] |
| 264 | steps: |
| 265 | - name: Checkout |
| 266 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 267 | with: |
| 268 | fetch-depth: 0 |
| 269 | - name: Build and Test |
| 270 | run: ci/x86_64-windows-debug.ps1 |
| 271 | timeout-minutes: 180 |
| 272 | x86_64-windows-release: |
| 273 | runs-on: [self-hosted, x86_64-windows] |
| 274 | steps: |
| 275 | - name: Checkout |
| 276 | uses: https://codeberg.org/ziglang/checkout@19af6bac491e2534a4687a50ee84fa7f13258d28 |
| 277 | with: |
| 278 | fetch-depth: 0 |
| 279 | - name: Build and Test |
| 280 | run: ci/x86_64-windows-release.ps1 |
| 281 | timeout-minutes: 180 |