diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index 6167af045f0543..11d57131a5a717 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -32,3 +32,20 @@ jobs: path: out/doc - name: Test run: NODE=$(command -v node) make test-doc-ci TEST_CI_ARGS="-p actions" + + build-lto: + if: github.event.pull_request.draft == false + runs-on: ubuntu-latest + 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: | + sudo apt update && sudo apt install ninja-build -y + ./configure --enable-lto --ninja + ninja -C out/Release