Skip to content

Commit

Permalink
build: add lto build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed May 27, 2021
1 parent aed17e9 commit 1bf6b41
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js daily job

on:
schedule:
- cron: "0 0 * * *"

env:
NODE_VERSION: 14.x

jobs:
build-lto:
runs-on: ubuntu-latest
# not working on gcc-8 and gcc-9 see https://github.com/nodejs/node/issues/38570
container: gcc:11
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Build lto
run: |
apt update && apt install ninja-build python-is-python3 -y
./configure --enable-lto --ninja
ninja -C out/Release

0 comments on commit 1bf6b41

Please sign in to comment.