-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (50 loc) · 1.53 KB
/
ci.yml
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
name: CI
on:
push:
release:
types: [published]
jobs:
build:
strategy:
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
# The versions should contain (at least) the lowest requirement
# and a version that is more up to date.
toit-version: [ v2.0.0-alpha.100, v2.0.0-alpha.125 ]
include:
- toit-version: v2.0.0-alpha.100
version-name: old
- toit-version: v2.0.0-alpha.125
version-name: new
name: CI - ${{ matrix.os }} - ${{ matrix.version-name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Toit
uses: toitlang/[email protected]
with:
toit-version: ${{ matrix.toit-version }}
# Fetch the dependencies. Different for each platform.
- name: Install dependencies - Linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install mosquitto
mosquitto -h || echo "ignore bad exit code"
- name: Install dependencies - macOS
if: runner.os == 'macOS'
run: |
brew install mosquitto
mosquitto -h || echo "ignore bad exit code"
- name: Disable mosquitto on Windows
if: runner.os == 'Windows'
shell: bash
run: |
make rebuild-cmake
cmake -DWITH_MOSQUITTO=FALSE build
- name: Install packages
run: |
make install-pkgs
- name: Test
run: |
make test