Struct and Union designator initialization #580
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install clang-tidy | |
run: | | |
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main' | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -q -y clang-format-18 | |
- name: coding convention | |
run: | | |
export CLANG_FORMAT=clang-format-18 | |
scripts/check-format.sh | |
tidy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Fetch all history for proper diffing. | |
fetch-depth: 0 | |
- name: Install cxxopts | |
run: scripts/install-cxxopts.sh | |
- name: Install fmt | |
run: scripts/install-fmt.sh | |
- name: Install bear | |
run: sudo apt-get install -q -y bear | |
- name: Install clang-tidy | |
run: | | |
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main' | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -q -y clang-tidy-18 | |
- name: static checks | |
run: | | |
export CLANG_TIDY=clang-tidy-18 | |
make tidy | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
cxx: [g++, clang++] | |
test: [typecheck, qbe, llvm] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: Install LLVM | |
run: | | |
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main' | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -q -y llvm-18 lld-18 llvm-18-runtime llvm-18-dev | |
- name: Install QBE | |
run: scripts/install-qbe.sh | |
- name: Install cxxopts | |
run: scripts/install-cxxopts.sh | |
- name: Install fmt | |
run: scripts/install-fmt.sh | |
- name: Install Turnt | |
run: pip install turnt | |
- name: Build | |
run: make | |
- name: Run ${{ matrix.test }} test | |
run: make -C test/ -j test-${{ matrix.test }} CXX=${{ matrix.cxx }} |