add tests for __builtin_arithmetic_shift_right_*
#622
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: CI | |
on: [push] | |
jobs: | |
windows-clang: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
msystem: ucrt64 | |
install: >- | |
make | |
git | |
mingw-w64-ucrt-x86_64-pkgconf | |
mingw-w64-ucrt-x86_64-fmt | |
mingw-w64-ucrt-x86_64-nlohmann-json | |
mingw-w64-ucrt-x86_64-llvm | |
mingw-w64-ucrt-x86_64-lld | |
mingw-w64-ucrt-x86_64-clang | |
mingw-w64-ucrt-x86_64-dwarfstack | |
mingw-w64-ucrt-x86_64-openssl | |
- uses: actions/checkout@v3 | |
- run: git clone https://github.com/Il-Capitano/cppb.git | |
- name: Build cppb | |
run: | | |
cd cppb | |
mkdir bin | |
make | |
cd .. | |
- run: touch ryu_format.windows.bc | |
- name: Build bozon | |
run: cppb/bin/cppb build -v --build-config no-sanitize | |
- name: Compile bitcode_test.bz | |
run: | | |
cppb/bin/cppb run -v --build-config no-sanitize | |
cppb/bin/cppb run-rule a.exe | |
./a.exe | |
- name: Build tests | |
run: cppb/bin/cppb build -v --build-config test-no-sanitize | |
- name: Run tests | |
run: | | |
cppb/bin/cppb run -v --build-config test-no-sanitize | |
cppb/bin/cppb run-rule run-tests-no-sanitize | |
windows-gcc: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
msystem: ucrt64 | |
install: >- | |
make | |
git | |
mingw-w64-ucrt-x86_64-pkgconf | |
mingw-w64-ucrt-x86_64-fmt | |
mingw-w64-ucrt-x86_64-nlohmann-json | |
mingw-w64-ucrt-x86_64-llvm | |
mingw-w64-ucrt-x86_64-lld | |
mingw-w64-ucrt-x86_64-clang | |
mingw-w64-ucrt-x86_64-gcc | |
mingw-w64-ucrt-x86_64-dwarfstack | |
mingw-w64-ucrt-x86_64-openssl | |
- uses: actions/checkout@v3 | |
- name: Build cppb | |
run: | | |
git clone https://github.com/Il-Capitano/cppb.git | |
cd cppb | |
mkdir bin | |
make | |
cd .. | |
- run: touch ryu_format.windows.bc | |
- name: Build bozon | |
run: cppb/bin/cppb build -v --build-config gcc | |
- name: Compile bitcode_test.bz | |
run: | | |
cppb/bin/cppb run -v --build-config gcc | |
cppb/bin/cppb run-rule a.exe | |
./a.exe | |
- name: Build tests | |
run: cppb/bin/cppb build -v --build-config test-gcc | |
- name: Run tests | |
run: cppb/bin/cppb run -v --build-config test-gcc | |
linux-clang: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install packages | |
run: | | |
printf "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-focal-17.list | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo apt update | |
sudo apt install gcc gcc-12 g++-12 llvm-17 lld-17 clang-17 libfmt-dev nlohmann-json3-dev libssl-dev | |
- name: Install libbacktrace | |
run: | | |
git clone https://github.com/ianlancetaylor/libbacktrace.git | |
cd libbacktrace | |
./configure | |
sudo make install | |
cd .. | |
- name: Build cppb | |
run: | | |
git clone https://github.com/Il-Capitano/cppb.git | |
cd cppb | |
mkdir bin | |
make CXX=clang++-17 LD=lld-17 | |
cd .. | |
- run: touch ryu_format.linux.bc | |
- name: Build bozon | |
run: cppb/bin/cppb build -v | |
- name: Compile bitcode_test.bz | |
run: | | |
cppb/bin/cppb run -v | |
cppb/bin/cppb run-rule a.out | |
./a.out | |
- name: Build tests | |
run: cppb/bin/cppb build -v --build-config test | |
- name: Run tests | |
run: | | |
cppb/bin/cppb run -v --build-config test | |
cppb/bin/cppb run-rule run-tests | |
linux-gcc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install packages | |
run: | | |
printf "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-focal-17.list | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo apt update | |
sudo apt install gcc lld gcc-12 g++-12 llvm-17 lld-17 clang-17 libfmt-dev nlohmann-json3-dev libssl-dev | |
- name: Install libbacktrace | |
run: | | |
git clone https://github.com/ianlancetaylor/libbacktrace.git | |
cd libbacktrace | |
./configure | |
sudo make install | |
cd .. | |
- name: Build cppb | |
run: | | |
git clone https://github.com/Il-Capitano/cppb.git | |
cd cppb | |
mkdir bin | |
make CXX=clang++-17 LD=lld-17 | |
cd .. | |
- run: touch ryu_format.linux.bc | |
- name: Build bozon | |
run: cppb/bin/cppb build -v --build-config gcc | |
- name: Compile bitcode_test.bz | |
run: | | |
cppb/bin/cppb run -v --build-config gcc | |
cppb/bin/cppb run-rule a.out | |
./a.out | |
- name: Build tests | |
run: cppb/bin/cppb build -v --build-config test-gcc | |
- name: Run tests | |
run: cppb/bin/cppb run -v --build-config test-gcc |