CI: split and rename the workflows to windows/macos/linux "main" is a bit non-descriptive, let's name them after the platforms we run them on. Splitting them up allows us to be less selective on how we run the various workflows, e.g. always running the linux one.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 0000000..a578fc6
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,43 @@
+name: linux
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+# Set permissions at the job level.
+permissions: {}
+
+jobs:
+ linux:
+ runs-on: ubuntu-20.04
+ permissions:
+ contents: read
+ strategy:
+ matrix:
+ compiler: [clang, gcc]
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ - uses: actions/setup-python@v2
+ with:
+ python-version: '3.9'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade meson
+ sudo apt install -y \
+ doxygen libxcb-xkb-dev valgrind ninja-build \
+ libwayland-dev wayland-protocols bison graphviz
+ - name: Setup
+ run: |
+ meson setup build
+ env:
+ CC: ${{ matrix.compiler }}
+ - name: Build
+ run: |
+ meson compile -C build
+ - name: Test
+ run:
+ meson test -C build --print-errorlogs --setup=valgrind --no-suite python-tests
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644
index 0000000..077c8ed
--- /dev/null
+++ b/.github/workflows/macos.yml
@@ -0,0 +1,40 @@
+name: macos
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+# Set permissions at the job level.
+permissions: {}
+
+jobs:
+ macos:
+ runs-on: macos-10.15
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ - uses: actions/setup-python@v2
+ with:
+ python-version: '3.9'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade meson
+ brew install libxml2 doxygen bison ninja
+ brew link bison --force
+ env:
+ HOMEBREW_NO_AUTO_UPDATE: 1
+ HOMEBREW_NO_INSTALL_CLEANUP: 1
+ - name: Setup
+ run: |
+ PATH="/usr/local/opt/bison/bin:${PATH}" meson setup -Denable-wayland=false -Denable-x11=false build
+ - name: Build
+ run: |
+ PATH="/usr/local/opt/bison/bin:${PATH}" meson compile -C build
+ - name: Test
+ run:
+ meson test -C build --print-errorlogs
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
deleted file mode 100644
index cbae406..0000000
--- a/.github/workflows/main.yml
+++ /dev/null
@@ -1,108 +0,0 @@
-name: CI
-
-on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
-
-# Set permissions at the job level.
-permissions: {}
-
-jobs:
- linux:
- runs-on: ubuntu-20.04
- permissions:
- contents: read
- strategy:
- matrix:
- compiler: [clang, gcc]
- steps:
- - uses: actions/checkout@v2
- with:
- persist-credentials: false
- - uses: actions/setup-python@v2
- with:
- python-version: '3.9'
- - name: Install dependencies
- run: |
- python -m pip install --upgrade meson
- sudo apt install -y \
- doxygen libxcb-xkb-dev valgrind ninja-build \
- libwayland-dev wayland-protocols bison graphviz
- - name: Setup
- run: |
- meson setup build
- env:
- CC: ${{ matrix.compiler }}
- - name: Build
- run: |
- meson compile -C build
- - name: Test
- run:
- meson test -C build --print-errorlogs --setup=valgrind --no-suite python-tests
-
- macos:
- runs-on: macos-10.15
- permissions:
- contents: read
- steps:
- - uses: actions/checkout@v2
- with:
- persist-credentials: false
- - uses: actions/setup-python@v2
- with:
- python-version: '3.9'
- - name: Install dependencies
- run: |
- python -m pip install --upgrade meson
- brew install libxml2 doxygen bison ninja
- brew link bison --force
- env:
- HOMEBREW_NO_AUTO_UPDATE: 1
- HOMEBREW_NO_INSTALL_CLEANUP: 1
- - name: Setup
- run: |
- PATH="/usr/local/opt/bison/bin:${PATH}" meson setup -Denable-wayland=false -Denable-x11=false build
- - name: Build
- run: |
- PATH="/usr/local/opt/bison/bin:${PATH}" meson compile -C build
- - name: Test
- run:
- meson test -C build --print-errorlogs
-
- windows:
- runs-on: windows-2019
- permissions:
- contents: read
- steps:
- - uses: actions/checkout@v2
- with:
- persist-credentials: false
- - uses: actions/setup-python@v2
- with:
- python-version: '3.9'
- - name: Install dependencies
- shell: powershell
- run: |
- python -m pip install --upgrade meson
- Invoke-WebRequest -Uri https://github.com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip -OutFile ninja.zip
- Invoke-WebRequest -Uri https://github.com/lexxmark/winflexbison/releases/download/v2.5.23/win_flex_bison-2.5.23.zip -OutFile win_flex_bison.zip
- Expand-Archive -Path win_flex_bison.zip -DestinationPath bin
- Expand-Archive -Path ninja.zip -DestinationPath bin
- Write-Output ((Get-Location).ToString() + "./bin") | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- - name: Setup
- shell: cmd
- run: |
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
- meson setup -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Denable-xkbregistry=false build
- env:
- CC: cl
- - name: Build
- shell: cmd
- run: |
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
- meson compile -C build
- - name: Test
- run:
- meson test -C build --print-errorlogs
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
new file mode 100644
index 0000000..e7a2856
--- /dev/null
+++ b/.github/workflows/windows.yml
@@ -0,0 +1,47 @@
+name: windows
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+# Set permissions at the job level.
+permissions: {}
+
+jobs:
+ windows:
+ runs-on: windows-2019
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ - uses: actions/setup-python@v2
+ with:
+ python-version: '3.9'
+ - name: Install dependencies
+ shell: powershell
+ run: |
+ python -m pip install --upgrade meson
+ Invoke-WebRequest -Uri https://github.com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip -OutFile ninja.zip
+ Invoke-WebRequest -Uri https://github.com/lexxmark/winflexbison/releases/download/v2.5.23/win_flex_bison-2.5.23.zip -OutFile win_flex_bison.zip
+ Expand-Archive -Path win_flex_bison.zip -DestinationPath bin
+ Expand-Archive -Path ninja.zip -DestinationPath bin
+ Write-Output ((Get-Location).ToString() + "./bin") | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
+ - name: Setup
+ shell: cmd
+ run: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
+ meson setup -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Denable-xkbregistry=false build
+ env:
+ CC: cl
+ - name: Build
+ shell: cmd
+ run: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
+ meson compile -C build
+ - name: Test
+ run:
+ meson test -C build --print-errorlogs