| ... | ... | @@ -0,0 +1,148 @@ |
| 1 | name: ci |
| 2 | on: |
| 3 | pull_request: |
| 4 | # push: |
| 5 | # branches: |
| 6 | # - master |
| 7 | workflow_dispatch: |
| 8 | concurrency: |
| 9 | group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} |
| 10 | cancel-in-progress: true |
| 11 | permissions: |
| 12 | contents: read |
| 13 | env: |
| 14 | # https://codeberg.org/forgejo/forgejo/issues/9244 |
| 15 | TERM: dumb |
| 16 | jobs: |
| 17 | aarch64-linux-debug: |
| 18 | runs-on: [self-hosted, aarch64-linux] |
| 19 | steps: |
| 20 | - name: Checkout |
| 21 | uses: actions/checkout@v4 |
| 22 | with: |
| 23 | fetch-depth: 0 |
| 24 | - name: Build and Test |
| 25 | run: sh ci/aarch64-linux-debug.sh |
| 26 | timeout-minutes: 120 |
| 27 | aarch64-linux-release: |
| 28 | runs-on: [self-hosted, aarch64-linux] |
| 29 | steps: |
| 30 | - name: Checkout |
| 31 | uses: actions/checkout@v4 |
| 32 | with: |
| 33 | fetch-depth: 0 |
| 34 | - name: Build and Test |
| 35 | run: sh ci/aarch64-linux-release.sh |
| 36 | timeout-minutes: 120 |
| 37 | loongarch64-linux-debug: |
| 38 | runs-on: [self-hosted, loongarch64-linux] |
| 39 | steps: |
| 40 | - name: Checkout |
| 41 | uses: actions/checkout@v4 |
| 42 | with: |
| 43 | fetch-depth: 0 |
| 44 | - name: Build and Test |
| 45 | run: sh ci/loongarch64-linux-debug.sh |
| 46 | timeout-minutes: 180 |
| 47 | loongarch64-linux-release: |
| 48 | runs-on: [self-hosted, loongarch64-linux] |
| 49 | steps: |
| 50 | - name: Checkout |
| 51 | uses: actions/checkout@v4 |
| 52 | with: |
| 53 | fetch-depth: 0 |
| 54 | - name: Build and Test |
| 55 | run: sh ci/loongarch64-linux-release.sh |
| 56 | timeout-minutes: 180 |
| 57 | riscv64-linux-debug: |
| 58 | if: github.event_name == 'push' |
| 59 | runs-on: [self-hosted, riscv64-linux] |
| 60 | steps: |
| 61 | - name: Checkout |
| 62 | uses: actions/checkout@v4 |
| 63 | with: |
| 64 | fetch-depth: 0 |
| 65 | - name: Build and Test |
| 66 | run: sh ci/riscv64-linux-debug.sh |
| 67 | timeout-minutes: 420 |
| 68 | riscv64-linux-release: |
| 69 | if: github.event_name == 'push' |
| 70 | runs-on: [self-hosted, riscv64-linux] |
| 71 | steps: |
| 72 | - name: Checkout |
| 73 | uses: actions/checkout@v4 |
| 74 | with: |
| 75 | fetch-depth: 0 |
| 76 | - name: Build and Test |
| 77 | run: sh ci/riscv64-linux-release.sh |
| 78 | timeout-minutes: 420 |
| 79 | x86_64-freebsd-debug: |
| 80 | runs-on: [self-hosted, x86_64-freebsd] |
| 81 | steps: |
| 82 | - name: Checkout |
| 83 | uses: actions/checkout@v4 |
| 84 | with: |
| 85 | fetch-depth: 0 |
| 86 | - name: Build and Test |
| 87 | run: sh ci/x86_64-freebsd-debug.sh |
| 88 | timeout-minutes: 120 |
| 89 | x86_64-freebsd-release: |
| 90 | runs-on: [self-hosted, x86_64-freebsd] |
| 91 | steps: |
| 92 | - name: Checkout |
| 93 | uses: actions/checkout@v4 |
| 94 | with: |
| 95 | fetch-depth: 0 |
| 96 | - name: Build and Test |
| 97 | run: sh ci/x86_64-freebsd-release.sh |
| 98 | timeout-minutes: 120 |
| 99 | x86_64-linux-debug: |
| 100 | runs-on: [self-hosted, x86_64-linux] |
| 101 | steps: |
| 102 | - name: Checkout |
| 103 | uses: actions/checkout@v4 |
| 104 | with: |
| 105 | fetch-depth: 0 |
| 106 | - name: Build and Test |
| 107 | run: sh ci/x86_64-linux-debug.sh |
| 108 | timeout-minutes: 240 |
| 109 | x86_64-linux-debug-llvm: |
| 110 | runs-on: [self-hosted, x86_64-linux] |
| 111 | steps: |
| 112 | - name: Checkout |
| 113 | uses: actions/checkout@v4 |
| 114 | with: |
| 115 | fetch-depth: 0 |
| 116 | - name: Build and Test |
| 117 | run: sh ci/x86_64-linux-debug-llvm.sh |
| 118 | timeout-minutes: 420 |
| 119 | x86_64-linux-release: |
| 120 | runs-on: [self-hosted, x86_64-linux] |
| 121 | steps: |
| 122 | - name: Checkout |
| 123 | uses: actions/checkout@v4 |
| 124 | with: |
| 125 | fetch-depth: 0 |
| 126 | - name: Build and Test |
| 127 | run: sh ci/x86_64-linux-release.sh |
| 128 | timeout-minutes: 360 |
| 129 | x86_64-windows-debug: |
| 130 | runs-on: [self-hosted, x86_64-windows] |
| 131 | steps: |
| 132 | - name: Checkout |
| 133 | uses: actions/checkout@v4 |
| 134 | with: |
| 135 | fetch-depth: 0 |
| 136 | - name: Build and Test |
| 137 | run: ci/x86_64-windows-debug.ps1 |
| 138 | timeout-minutes: 180 |
| 139 | x86_64-windows-release: |
| 140 | runs-on: [self-hosted, x86_64-windows] |
| 141 | steps: |
| 142 | - name: Checkout |
| 143 | uses: actions/checkout@v4 |
| 144 | with: |
| 145 | fetch-depth: 0 |
| 146 | - name: Build and Test |
| 147 | run: ci/x86_64-windows-release.ps1 |
| 148 | timeout-minutes: 180 |