|
| 1 | +name: CI-Build |
| 2 | +run-name: CI build |
| 3 | + |
| 4 | +on: |
| 5 | + pull_request: |
| 6 | + branches: '*' |
| 7 | + paths: |
| 8 | + - '**' |
| 9 | + - '!.github/**' |
| 10 | + - '!README.md' |
| 11 | + push: |
| 12 | + branches: |
| 13 | + - master |
| 14 | + paths: |
| 15 | + - '**' |
| 16 | + - '!.github/**' |
| 17 | + - '!README.md' |
| 18 | + workflow_dispatch: |
| 19 | + |
| 20 | +concurrency: |
| 21 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 22 | + cancel-in-progress: true |
| 23 | + |
| 24 | + |
| 25 | +jobs: |
| 26 | + Linux-1: |
| 27 | + strategy: |
| 28 | + matrix: |
| 29 | + ver: |
| 30 | + - id: 'gcc' |
| 31 | + title: GCC (Linux) |
| 32 | + runs-on: ubuntu-latest |
| 33 | + name: ${{matrix.ver.title}} |
| 34 | + |
| 35 | + steps: |
| 36 | + - name: checkout |
| 37 | + uses: actions/checkout@v4 |
| 38 | + - name: install perl module |
| 39 | + run: sudo cpan -i Font::TTF::Font Sort::Versions |
| 40 | + shell: bash |
| 41 | + - name: autogen |
| 42 | + run: | |
| 43 | + ./autogen.sh |
| 44 | + shell: bash |
| 45 | + - name: configure |
| 46 | + run: | |
| 47 | + ./configure |
| 48 | + shell: bash |
| 49 | + - name: build |
| 50 | + run: | |
| 51 | + make all |
| 52 | + shell: bash |
| 53 | + Linux-2: |
| 54 | + strategy: |
| 55 | + matrix: |
| 56 | + ver: |
| 57 | + - id: '1.9' |
| 58 | + - id: '2.0' |
| 59 | + targ: |
| 60 | + - id: 'dos' |
| 61 | + title: 'DOS' |
| 62 | + - id: 'os2' |
| 63 | + title: 'OS/2' |
| 64 | + - id: 'win32' |
| 65 | + title: 'WIN32' |
| 66 | + - id: 'linux386' |
| 67 | + title: 'Linux' |
| 68 | + runs-on: 'ubuntu-latest' |
| 69 | + name: Open Watcom ${{matrix.ver.id}} (${{matrix.targ.title}}) |
| 70 | + |
| 71 | + steps: |
| 72 | + - name: checkout |
| 73 | + uses: actions/checkout@v4 |
| 74 | + - name: Open Watcom setup |
| 75 | + uses: open-watcom/setup-watcom@v0 |
| 76 | + with: |
| 77 | + version: ${{matrix.ver.id}} |
| 78 | + - name: build |
| 79 | + run: | |
| 80 | + wmake -f Mkfiles/openwcom.mak ${{matrix.targ.id}} |
| 81 | + Windows-1: |
| 82 | + strategy: |
| 83 | + matrix: |
| 84 | + ver: |
| 85 | + - id: '1.9' |
| 86 | + - id: '2.0' |
| 87 | + targ: |
| 88 | + - id: 'dos' |
| 89 | + title: 'DOS' |
| 90 | + - id: 'os2' |
| 91 | + title: 'OS/2' |
| 92 | + - id: 'win32' |
| 93 | + title: 'WIN32' |
| 94 | + - id: 'linux386' |
| 95 | + title: 'Linux' |
| 96 | + runs-on: 'windows-latest' |
| 97 | + name: Open Watcom ${{matrix.ver.id}} (${{matrix.targ.title}}) |
| 98 | + |
| 99 | + steps: |
| 100 | + - name: checkout |
| 101 | + uses: actions/checkout@v4 |
| 102 | + - name: Open Watcom setup |
| 103 | + uses: open-watcom/setup-watcom@v0 |
| 104 | + with: |
| 105 | + version: ${{matrix.ver.id}} |
| 106 | + - name: build |
| 107 | + run: | |
| 108 | + wmake -f Mkfiles/openwcom.mak ${{matrix.targ.id}} |
| 109 | + shell: cmd |
| 110 | + Windows-2: |
| 111 | + strategy: |
| 112 | + matrix: |
| 113 | + image: |
| 114 | + - version: 2022 |
| 115 | + osname: windows-2022 |
| 116 | + vs: 2022 |
| 117 | + - version: 2025 |
| 118 | + osname: windows-2025 |
| 119 | + vs: 2022 |
| 120 | + runs-on: ${{matrix.image.osname}} |
| 121 | + name: Visual Studio ${{matrix.image.vs}} (WIN64 ${{matrix.image.version}}) |
| 122 | + |
| 123 | + steps: |
| 124 | + - name: checkout |
| 125 | + uses: actions/checkout@v4 |
| 126 | + - name: Enable Developer Command Prompt |
| 127 | + uses: ilammy/msvc-dev-cmd@v1 |
| 128 | + with: |
| 129 | + vsversion: ${{matrix.image.vs}} |
| 130 | + arch: amd64 |
| 131 | + - name: build |
| 132 | + run: | |
| 133 | + nmake /f Mkfiles\msvc.mak all |
| 134 | + shell: cmd |
0 commit comments