Skip to content

Commit f396bde

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

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/misc.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,21 @@ 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+
container: gcc:11
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Use Node.js ${{ env.NODE_VERSION }}
43+
uses: actions/setup-node@v1
44+
with:
45+
node-version: ${{ env.NODE_VERSION }}
46+
- name: Environment Information
47+
run: npx envinfo
48+
- name: Build lto
49+
run: |
50+
apt update && apt install ninja-build python-is-python3 -y
51+
./configure --enable-lto --ninja
52+
ninja -C out/Release

0 commit comments

Comments
 (0)