Skip to content

Commit 1bf6b41

Browse files
committed
build: add lto build to CI
1 parent aed17e9 commit 1bf6b41

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/daily.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Node.js daily job
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
env:
8+
NODE_VERSION: 14.x
9+
10+
jobs:
11+
build-lto:
12+
runs-on: ubuntu-latest
13+
# not working on gcc-8 and gcc-9 see https://github.com/nodejs/node/issues/38570
14+
container: gcc:11
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ env.NODE_VERSION }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ env.NODE_VERSION }}
21+
- name: Environment Information
22+
run: npx envinfo
23+
- name: Build lto
24+
run: |
25+
apt update && apt install ninja-build python-is-python3 -y
26+
./configure --enable-lto --ninja
27+
ninja -C out/Release

0 commit comments

Comments
 (0)