-
Notifications
You must be signed in to change notification settings - Fork 8
69 lines (66 loc) · 1.58 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
62
63
64
65
66
67
68
69
name: CI
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
mongodb-version: ["4.2", "4.4", "5.0", "6.0", "7.0"]
steps:
- name: Checkout V
uses: actions/checkout@v2
with:
repository: vlang/v
- name: Install V dependencies
run: |
sudo apt-get update
sudo apt-get install --quiet -y libglfw3-dev libxi-dev libxcursor-dev
- name: Build V
run: |
make
sudo ./v symlink
- name: Checkout Mongo
uses: actions/checkout@v2
with:
path: vlib/mongo
- name: Install Mongo dependencies
run: |
cd ./vlib/mongo/
sudo apt update
sudo make install
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Test
run: |
cd ./vlib/mongo/
make test
- name: Build Mongo example
run: |
cd ../examples/
v -prod example.v
build:
runs-on: ubuntu-latest
container: thevlang/vlang:debian-dev
steps:
- name: Checkout Mongo
uses: actions/checkout@v2
with:
path: vlib/mongo
- name: Install Mongo dependencies
run: |
cd ./vlib/mongo/
apt update
make install
- name: Build Mongo shared lib
run: |
cd ./vlib/mongo/
make build