Update main.yml

This commit is contained in:
blueloveTH 2025-05-15 15:43:14 +08:00
parent 1f91a6ef1b
commit 110a9ae591

View File

@ -82,29 +82,26 @@ jobs:
path: output path: output
- name: Benchmark - name: Benchmark
run: python scripts/run_tests.py benchmark run: python scripts/run_tests.py benchmark
build_linux_x86: build_linux_multiarch:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
arch: [x86, aarch64, armv7]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Setup Alpine Linux for aarch64 - name: Setup Alpine Linux for ${{ matrix.arch }}
uses: jirutka/setup-alpine@v1 uses: jirutka/setup-alpine@v1
with: with:
arch: x86 arch: ${{ matrix.arch }}
packages: gcc g++ make cmake libc-dev linux-headers python3 gdb packages: gcc g++ make cmake libc-dev linux-headers python3
- name: Build and Test - name: Build and Test
run: | run: |
echo "Building for architecture: ${{ matrix.arch }}"
uname -m uname -m
python -c "import struct; print(8 * struct.calcsize('P'))" python -c "import struct; print(8 * struct.calcsize('P'))"
# python cmake_build.py Debug
# # gdb_commands.txt
# echo "run" > gdb_commands.txt
# echo "backtrace" >> gdb_commands.txt
# echo "quit" >> gdb_commands.txt
# gdb -batch -x gdb_commands.txt --args ./main tests/77_builtin_func_1.py
python cmake_build.py python cmake_build.py
python scripts/run_tests.py python scripts/run_tests.py
python scripts/run_tests.py benchmark python scripts/run_tests.py benchmark