-
Notifications
You must be signed in to change notification settings - Fork 37
64 lines (59 loc) · 1.5 KB
/
build.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
name: Spidermonkey
on:
push:
branches-ignore: [ esr* ]
pull_request:
branches-ignore: [ esr* ]
schedule:
# every fifth day
- cron: "10 10 1,5,10,15,20,25 * *"
env:
SHELL: /bin/bash
# ccache
CCACHE: ccache
# use clang/lld
CXX: clang++
CC: clang
LDFLAGS: -fuse-ld=lld
LD_LIBRARY_PATH: /usr/local/lib
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
sudo apt install ccache llvm clang lld meson ninja-build -y
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
default: true
- name: Get SM pkg
run: ./tools/get_sm.sh
- name: ccache cache files
uses: actions/cache@v1.1.0
with:
path: ~/.ccache
key: ${{ runner.os }}-${{ hashFiles('**/mozjs.tar.xz') }}
- name: Build SpiderMonkey
run: |
mkdir -p /tmp/mozjs
tar -xf mozjs.tar.xz -C /tmp/mozjs
cd /tmp/mozjs
cd $(ls -d */|head -n 1)
cd js/src
bash $GITHUB_WORKSPACE/tools/generic_lib.sh $GITHUB_WORKSPACE/meson.build
mkdir _build
cd _build
../configure --disable-jemalloc --with-system-zlib \
--with-intl-api --enable-debug --enable-optimize
ccache -z
make
sudo make install
ccache -s
- name: Build Examples
run: |
meson _build || cat _build/meson-logs/meson-log.txt
ninja -C _build