openSUSE x86 #20
This file contains hidden or 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: openSUSE x86 | |
| on: | |
| # push: | |
| # pull_request: | |
| # branches: [main] | |
| schedule: | |
| - cron: "0 0 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| container: opensuse/tumbleweed:latest | |
| env: | |
| LLVM_VERSION: "22.1.2" | |
| LLVM_PREFIX: /opt/llvm-22 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| compiler: | |
| - { compiler: GNU, CC: gcc, CXX: g++ } | |
| - { compiler: LLVM, CC: clang, CXX: clang++ } | |
| type: [Debug, Release] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| zypper --non-interactive refresh | |
| zypper --non-interactive install --no-recommends \ | |
| ca-certificates cmake ninja gcc gcc-c++ \ | |
| python3 python3-pip python3-setuptools \ | |
| wget xz diffutils tar gzip | |
| wget -nv --tries=5 --waitretry=5 --timeout=30 \ | |
| "https://github.com/llvm/llvm-project/releases/download/llvmorg-${LLVM_VERSION}/LLVM-${LLVM_VERSION}-Linux-X64.tar.xz" | |
| tar xf "LLVM-${LLVM_VERSION}-Linux-X64.tar.xz" | |
| mv "LLVM-${LLVM_VERSION}-Linux-X64" "${LLVM_PREFIX}" | |
| pip3 install lit --break-system-packages | |
| echo "${LLVM_PREFIX}/bin" >> "$GITHUB_PATH" | |
| - name: Build eter | |
| env: | |
| CC: ${{ matrix.compiler.CC }} | |
| CXX: ${{ matrix.compiler.CXX }} | |
| run: | | |
| mkdir build && cd build | |
| cmake -DCMAKE_PREFIX_PATH="${LLVM_PREFIX}" \ | |
| -DCMAKE_BUILD_TYPE=${{ matrix.type }} \ | |
| -G Ninja ../ | |
| ninja -j2 | |
| - name: Run tests | |
| run: | | |
| cd build | |
| lit -va ./test/ |