2021-05-06 20:09:25 +08:00
|
|
|
name: Node.js daily job
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
|
|
|
env:
|
2021-07-27 09:42:13 +08:00
|
|
|
NODE_VERSION: lts/*
|
2021-05-06 20:09:25 +08:00
|
|
|
|
|
|
|
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@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Environment Information
|
|
|
|
run: npx envinfo
|
|
|
|
- name: Build lto
|
|
|
|
run: |
|
|
|
|
apt-get update && apt-get install ninja-build python-is-python3 -y
|
|
|
|
./configure --enable-lto --ninja
|
|
|
|
ninja -C out/Release
|