From 1bf6b416a79c1083f5e2a24418cb31e4c20cf7b5 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Thu, 6 May 2021 12:09:25 +0000 Subject: [PATCH] build: add lto build to CI --- .github/workflows/daily.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/daily.yml diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml new file mode 100644 index 00000000000000..67765c47ac61a5 --- /dev/null +++ b/.github/workflows/daily.yml @@ -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