|
| 1 | +# Zero-Clause BSD License |
| 2 | + |
| 3 | +# Copyright (C) 2024 Toitware ApS. |
| 4 | + |
| 5 | +# Permission to use, copy, modify, and/or distribute this software for any |
| 6 | +# purpose with or without fee is hereby granted. |
| 7 | + |
| 8 | +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
| 9 | +# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 10 | +# FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
| 11 | +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| 12 | +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
| 13 | +# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 14 | +# PERFORMANCE OF THIS SOFTWARE. |
| 15 | + |
| 16 | +name: CI |
| 17 | + |
| 18 | +on: |
| 19 | + push: |
| 20 | + release: |
| 21 | + types: [published] |
| 22 | + |
| 23 | +jobs: |
| 24 | + build: |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + os: [ ubuntu-latest, windows-latest, macos-latest ] |
| 28 | + # The versions should contain (at least) the lowest requirement |
| 29 | + # and a version that is more up to date. |
| 30 | + toit-version: [ v2.0.0-alpha.120, latest ] |
| 31 | + include: |
| 32 | + - toit-version: v2.0.0-alpha.120 |
| 33 | + version-name: old |
| 34 | + - toit-version: latest |
| 35 | + version-name: new |
| 36 | + |
| 37 | + name: CI - ${{ matrix.os }} - ${{ matrix.version-name }} |
| 38 | + |
| 39 | + runs-on: ${{ matrix.os }} |
| 40 | + |
| 41 | + steps: |
| 42 | + - uses: actions/checkout@v4 |
| 43 | + |
| 44 | + - uses: toitlang/action-setup@v1 |
| 45 | + with: |
| 46 | + toit-version: ${{ matrix.toit-version }} |
| 47 | + |
| 48 | + - name: Test |
| 49 | + run: | |
| 50 | + make test |
0 commit comments