-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.13 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
name: CI
on:
push:
release:
types: [published]
env:
TOIT_VERSION: v2.0.0-alpha.121
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Toit
id: setup-toit
uses: toitlang/action-setup@v1
with:
toit-version: ${{ env.TOIT_VERSION }}
# Fetch the dependencies. Different for each platform.
- name: Install dependencies - Linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
cmake --version
- name: Install dependencies - macOS
if: runner.os == 'macOS'
run: |
cmake --version
- name: Install dependencies - Windows
if: runner.os == 'Windows'
run: |
cmake --version
- name: Run cmake
shell: bash
run: |
make rebuild-cmake
cmake build
- name: Install packages
run: |
make install-pkgs
- name: Test
run: |
make test