Make GitHub actions use Node.js 24 #83
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: C/C++ CI | |
| # Per https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| on: | |
| push: | |
| pull_request: | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Update generated configuration files | |
| run: autoreconf -fiv | |
| - name: configure | |
| run: ./configure | |
| - name: make | |
| run: make | |
| - name: make check | |
| run: make check | |
| - name: make distcheck | |
| run: make distcheck | |
| - name: Upload test logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: test-logs | |
| path: | | |
| tests/test-suite.log | |
| tests/*.log | |
| catdoc-*/_build/sub/tests/test-suite.log | |
| catdoc-*/_build/sub/tests/*.log | |
| - name: Upload distribution .tar.gz as artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: dist-archive | |
| path: catdoc-*.tar.gz | |
| - name: Upload distribution tarball to release | |
| if: github.event_name == 'release' | |
| run: | | |
| version=$(echo catdoc-*.tar.gz | sed 's/catdoc-//;s/\.tar\.gz//') | |
| # Rename the file, otherwise it has the same filename as the source code tarball. | |
| cp catdoc-*.tar.gz catdoc-${version}-dist.tar.gz | |
| gh release upload ${{ github.event.release.tag_name }} catdoc-${version}-dist.tar.gz | |
| env: | |
| GH_TOKEN: ${{ github.token }} |