Skip to content

Commit 5b7fa42

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

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/misc.yml

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

0 commit comments

Comments
 (0)