Skip to content

Commit 8df9eb4

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

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/misc.yml

+19
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,22 @@ jobs:
3232
path: out/doc
3333
- name: Test
3434
run: NODE=$(command -v node) make test-doc-ci TEST_CI_ARGS="-p actions"
35+
36+
build-lto:
37+
if: github.event.pull_request.draft == false
38+
runs-on: ubuntu-latest
39+
# not working on gcc-8 and gcc-9 see https://github.com./nodejs/node/issues/38570
40+
container: gcc:11
41+
steps:
42+
- uses: actions/checkout@v2
43+
- name: Use Node.js ${{ env.NODE_VERSION }}
44+
uses: actions/setup-node@v1
45+
with:
46+
node-version: ${{ env.NODE_VERSION }}
47+
- name: Environment Information
48+
run: npx envinfo
49+
- name: Build lto
50+
run: |
51+
apt update && apt install ninja-build python-is-python3 -y
52+
./configure --enable-lto --ninja
53+
ninja -C out/Release

0 commit comments

Comments
 (0)