Update main.yml

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

View File

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