[github] Add job for linux release build & test #1245
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: build_test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build_test: | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| kind: [debug] | |
| include: | |
| # On linux also build and test release. | |
| - os: ubuntu-latest | |
| kind: release | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 25-nightly | |
| - uses: swift-actions/setup-swift@v2 | |
| with: | |
| swift-version: "6.0.3" | |
| - name: Swift Version | |
| run: swift --version | |
| - uses: actions/checkout@v2 | |
| - name: Build | |
| run: swift build -c ${{ matrix.kind }} -v | |
| - name: Run tests with Node.js | |
| run: swift test -c ${{ matrix.kind }} -v | |
| - name: Install jsvu | |
| run: npm install jsvu -g | |
| - name: Install d8 | |
| run: jsvu --os=default --engines=v8 | |
| - name: Run tests with d8 | |
| run: FUZZILLI_TEST_SHELL=~/.jsvu/engines/v8/v8 swift test -c ${{ matrix.kind }} -v |