[Auto-Sync] LLVM 18 update #19
Workflow file for this run
This file contains 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: Auto-Sync | |
on: | |
push: | |
paths: | |
- "suite/auto-sync/**" | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: suite/auto-sync/ | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install auto-sync package | |
run: | | |
pip install . | |
- name: Check formatting | |
run: | | |
python3.11 -m black --check src/autosync | |
- name: Build llvm-tblgen | |
run: | | |
git clone https://github.com/capstone-engine/llvm-capstone.git vendor/llvm_root | |
cd vendor/llvm_root | |
mkdir build | |
cd build | |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../llvm | |
cmake --build . --target llvm-tblgen --config Debug | |
cd ../../../ | |
- name: Test generationof inc files | |
run: | | |
./src/autosync/ASUpdater.py -a AArch64 -s IncGen | |
./src/autosync/ASUpdater.py -a Alpha -s IncGen | |
./src/autosync/ASUpdater.py -a ARM -s IncGen | |
./src/autosync/ASUpdater.py -a PPC -s IncGen | |
- name: CppTranslator - Patch tests | |
run: | | |
python -m unittest discover src/autosync/cpptranslator/Tests/ |