chore: update ASTrein to 2.0.0 #36
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: Deno Integration Tests | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: {} | |
| jobs: | |
| deno-tests: | |
| name: Deno integration tests (${{ matrix.arch }}, deno ${{ matrix.deno }}) | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| deno: ["2.6.0", "2.5.0"] | |
| arch: [x86_64, aarch64] | |
| include: | |
| - arch: x86_64 | |
| runner: ubuntu-24.04 | |
| - arch: aarch64 | |
| runner: ubuntu-24.04-arm | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v${{ matrix.deno }} | |
| - name: Setup CMake | |
| uses: jwlawson/actions-setup-cmake@v2 | |
| with: | |
| cmake-version: '3.31.x' | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc-14 g++-14 ninja-build socat git | |
| - name: Configure CMake | |
| run: | | |
| cmake -S . -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_C_COMPILER=gcc-14 \ | |
| -DCMAKE_CXX_COMPILER=g++-14 \ | |
| -DCPP_BINDINGS_LINUX_PORTABLE_CPU_BASELINE=ON | |
| - name: Build | |
| run: | | |
| cmake --build build --config Release --target cpp_bindings_linux | |
| - name: Start virtual serial echo (socat) | |
| run: | | |
| socat -d -d pty,raw,echo=0,link=/tmp/ttyCI_A,mode=666 pty,raw,echo=0,link=/tmp/ttyCI_B,mode=666 & | |
| sleep 2 | |
| exec 3<>/tmp/ttyCI_B | |
| stdbuf -i0 -o0 cat <&3 >&3 & | |
| sleep 1 | |
| - name: Run Deno integration tests | |
| working-directory: integration_tests | |
| env: | |
| SERIAL_TEST_PORT: /tmp/ttyCI_A | |
| run: | | |
| deno task test |