Bump CI actions to v5 to resolve Node.js 20 deprecation warnings #5
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| cc: [gcc, clang] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y autoconf automake bats | |
| - name: Bootstrap | |
| run: autoreconf --force --install | |
| - name: Configure | |
| run: ./configure CC=${{ matrix.cc }} | |
| - name: Satisfy man page dependency (ronn not available in CI) | |
| run: mkdir -p man && touch man/flock.1 | |
| - name: Build | |
| run: make | |
| - name: Test | |
| run: make check | |
| - name: Upload test logs | |
| if: failure() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: test-logs-linux-${{ matrix.cc }} | |
| path: | | |
| test-suite.log | |
| t/*.log | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: brew install automake bats-core | |
| - name: Bootstrap | |
| run: autoreconf --force --install | |
| - name: Configure | |
| run: ./configure | |
| - name: Satisfy man page dependency (ronn not available in CI) | |
| run: mkdir -p man && touch man/flock.1 | |
| - name: Build | |
| run: make | |
| - name: Test | |
| run: make check | |
| - name: Upload test logs | |
| if: failure() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: test-logs-macos | |
| path: | | |
| test-suite.log | |
| t/*.log | |
| build-freebsd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Build and test on FreeBSD | |
| uses: vmactions/freebsd-vm@v1 | |
| with: | |
| usesh: true | |
| prepare: | | |
| pkg install -y autoconf automake bash bats-core | |
| run: | | |
| autoreconf --force --install | |
| ./configure | |
| mkdir -p man && touch man/flock.1 | |
| make | |
| make check | |
| - name: Upload test logs | |
| if: failure() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: test-logs-freebsd | |
| path: | | |
| test-suite.log | |
| t/*.log |