|
| 1 | +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions |
| 2 | + |
| 3 | +name: Main |
| 4 | +on: |
| 5 | + - push # branch or tag |
| 6 | + |
| 7 | +jobs: |
| 8 | + linux: |
| 9 | + strategy: |
| 10 | + fail-fast: false |
| 11 | + matrix: |
| 12 | + include: |
| 13 | + - job_name: ubuntu-x86_64 (testsuite) |
| 14 | + target: x86_64-linux-gnu |
| 15 | + - job_name: ubuntu-x86_64 (unittests) |
| 16 | + target: x86_64-linux-gnu |
| 17 | + - job_name: ubuntu-x86_64 (bootstrap) |
| 18 | + target: x86_64-linux-gnu |
| 19 | + bootstrap: enable |
| 20 | + - job_name: ubuntu-arm |
| 21 | + target: arm-linux-gnueabi |
| 22 | + - job_name: ubuntu-armhf |
| 23 | + target: arm-linux-gnueabihf |
| 24 | + - job_name: ubuntu-aarch64 |
| 25 | + target: aarch64-linux-gnu |
| 26 | + - job_name: ubuntu-mips |
| 27 | + target: mips-linux-gnu |
| 28 | + - job_name: ubuntu-mips64el |
| 29 | + target: mips64el-linux-gnuabi64 |
| 30 | + - job_name: ubuntu-mipsel |
| 31 | + target: mipsel-linux-gnu |
| 32 | + - job_name: ubuntu-powerpc64le |
| 33 | + target: powerpc64le-linux-gnu |
| 34 | + - job_name: ubuntu-systemz |
| 35 | + target: s390x-linux-gnu |
| 36 | + - job_name: ubuntu-sparc64 |
| 37 | + target: sparc64-linux-gnu |
| 38 | + name: ${{ matrix.job_name }} |
| 39 | + runs-on: ubuntu-22.04 |
| 40 | + env: |
| 41 | + GCC_CI_TARGET: ${{ matrix.target }} |
| 42 | + GCC_CI_BOOTSTRAP: ${{ matrix.bootstrap || 'disable' }} |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + with: |
| 46 | + fetch-depth: 10 |
| 47 | + - name: Install dependencies |
| 48 | + run: ./buildci.sh installdeps |
| 49 | + - name: Configure gdc |
| 50 | + run: ./buildci.sh configure |
| 51 | + - name: Build gdc |
| 52 | + run: ./buildci.sh build |
| 53 | + - name: Run testsuite |
| 54 | + run: ${{ contains(matrix.job_name, 'testsuite') && './buildci.sh testsuite' || 'echo disabled' }} |
| 55 | + - name: Run unittests |
| 56 | + run: ${{ contains(matrix.job_name, 'unittests') && './buildci.sh unittests' || 'echo disabled' }} |
0 commit comments