2021-05-06 20:09:25 +08:00
|
|
|
name: Node.js daily job
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2022-01-30 04:31:01 +08:00
|
|
|
- cron: 0 0 * * *
|
2021-05-06 20:09:25 +08:00
|
|
|
|
|
|
|
env:
|
2021-07-27 09:42:13 +08:00
|
|
|
NODE_VERSION: lts/*
|
2021-05-06 20:09:25 +08:00
|
|
|
|
2022-07-13 05:50:46 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
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:
|
2024-06-04 02:33:18 +08:00
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
2021-11-28 06:12:26 +08:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2021-05-06 20:09:25 +08:00
|
|
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
2024-03-04 02:30:53 +08:00
|
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2021-05-06 20:09:25 +08:00
|
|
|
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
|