diff options
author | Charles Giessen <charles@lunarg.com> | 2022-10-20 00:08:10 +0300 |
---|---|---|
committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2022-10-26 02:58:01 +0300 |
commit | 6a0367a95467209ab5ac0002ce1545c73c81a6d2 (patch) | |
tree | 304892213a53e5c756aa7f27b420028f8f8ca184 | |
parent | f57610da139e2a5acebb64db31edd728f9283db1 (diff) |
Add 32 bit github actions CI
-rw-r--r-- | .github/workflows/build.yml | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d86177e6..e560b90d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,7 +45,8 @@ jobs: with: python-version: '3.7' - run: sudo apt update - - run: sudo apt install libwayland-dev libxrandr-dev + - name: Install Dependencies + run: sudo apt install --yes --no-install-recommends libwayland-dev libxrandr-dev - name: Generate build files run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} -DBUILD_TESTS=On -DUPDATE_DEPS=ON -DTEST_USE_ADDRESS_SANITIZER=ON @@ -69,6 +70,46 @@ jobs: - name: Verify commit message formatting run: ./scripts/check_commit_message_format.sh + linux-32: + runs-on: ${{matrix.os}} + + strategy: + matrix: + cc: [ gcc, clang ] + cxx: [ g++, clang++ ] + config: [ Debug, Release ] + os: [ ubuntu-18.04, ubuntu-20.04 ] + exclude: + - cc: gcc + cxx: clang++ + - cc: clang + cxx: g++ + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.7' + - name: Install Dependencies + run: |- + sudo dpkg --add-architecture i386 + sudo apt-get update + sudo apt install --yes --no-install-recommends gcc-multilib g++-multilib libc6-dev-i386 pkg-config-i686-linux-gnu libwayland-dev:i386 libxrandr-dev:i386 + - name: Generate build files + run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} -DBUILD_TESTS=On -DUPDATE_DEPS=ON -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 + env: + LDFLAGS: -m32 + ASFLAGS: --32 + PKG_CONFIG: i686-pc-linux-gnu-pkg-config + + + - name: Build the loader + run: make -C build + + - name: Run regression tests + working-directory: ./build + run: ctest --output-on-failure + windows: runs-on: ${{matrix.os}} |