Add a PR check workflow #1
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
| # PR check workflow - should be equilvalent to the build step of the CI workflow, but | |
| # with signing disabled (and obviously no publishing etc either). | |
| name: PR Check | |
| on: | |
| - pull_request | |
| - push | |
| jobs: | |
| build: | |
| name: Build & test (unsigned) | |
| strategy: | |
| matrix: | |
| include: | |
| - platform: linux | |
| arch: x64 | |
| os: "ubuntu-22.04" | |
| - platform: linux | |
| arch: arm64 | |
| os: "ubuntu-24.04-arm" | |
| - platform: windows | |
| arch: x64 | |
| os: "windows-2022" | |
| - platform: mac | |
| arch: x64 | |
| os: "macos-13" | |
| - platform: mac | |
| arch: arm64 | |
| os: "macos-14" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.20.0 | |
| check-latest: true | |
| cache: 'npm' | |
| - name: Install system FPM to fix ARM64 Linux builds | |
| if: matrix.platform == 'linux' && matrix.arch == 'arm64' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install ruby ruby-dev build-essential | |
| sudo gem install --no-document fpm | |
| - run: npm ci | |
| - run: npm run build | |
| env: | |
| # Build dev builds only | |
| ENABLE_SIGNING: false | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| USE_SYSTEM_FPM: ${{ matrix.platform == 'linux' && matrix.arch == 'arm64' }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.platform }}-${{ matrix.arch }}-distributables | |
| path: dist/HttpToolkit-* | |
| if-no-files-found: error |