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:
|
2024-06-10 17:38:47 +08:00
|
|
|
runs-on: ubuntu-24.04
|
2021-05-06 20:09:25 +08:00
|
|
|
steps:
|
2024-11-04 03:03:33 +08:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
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-11-04 03:06:43 +08:00
|
|
|
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
2021-05-06 20:09:25 +08:00
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Environment Information
|
|
|
|
run: npx envinfo
|
|
|
|
- name: Build lto
|
|
|
|
run: |
|
2024-06-10 17:38:47 +08:00
|
|
|
sudo apt-get update && sudo apt-get install ninja-build -y
|
2021-05-06 20:09:25 +08:00
|
|
|
./configure --enable-lto --ninja
|
|
|
|
ninja -C out/Release
|