-
Notifications
You must be signed in to change notification settings - Fork 18
69 lines (62 loc) · 2.38 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches:
- "*"
jobs:
examples:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x]
architecture:
- x64
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# - name: Workaround for bad mirror
# run: sudo gem install apt-spy2; sudo apt-spy2 check; sudo apt-spy2 fix --commit;
- name: Update package repository
run: sudo apt-get update; # sudo apt-get upgrade
- name: Install dependencies
run: sudo apt-get --yes install gjs libappindicator3-dev libgda-5.0-dev libgirepository1.0-dev libgtk-3-dev libgtk-4-dev libgtksourceview-3.0-dev libnotify-dev libsoup2.4-dev libsoup-3.0-dev libwebkit2gtk-4.0-dev libadwaita-1-dev gnome-shell-common libmutter-10-dev libgcr-3-dev libgnome-desktop-3-dev build-essential gobject-introspection libgirepository1.0-dev libcairo2-dev
- run: yarn --version
- run: node --version
- run: gjs --version
- run: yarn install
- run: yarn run build
- run: yarn run build:examples
- run: yarn run validate:examples
- run: yarn run start:cli-examples
gjs-types-all:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x]
architecture:
- x64
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Update package repository
run: sudo apt-get update; # sudo apt-get upgrade
- name: Install dependencies
run: sudo apt-get --yes install build-essential gobject-introspection libgirepository1.0-dev libcairo2 libcairo2-dev
- run: yarn install
- run: yarn run build
- run: NODE_OPTIONS=--max_old_space_size=9216 yarn run build:types:packages
- run: NODE_OPTIONS=--max_old_space_size=9216 yarn run validate:types:packages