Skip to content

Commit 7f53a0b

Browse files
gengjiawenrichardlau
authored andcommitted
build: add lto build to CI
PR-URL: #38567 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 01f00fa commit 7f53a0b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/daily.yml

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

0 commit comments

Comments
 (0)