Skip to content

Commit

Permalink
Update cmake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Garey Akhmetshin committed Nov 13, 2024
1 parent a9917d9 commit c556b53
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,33 @@ on: [push, pull_request]
jobs:
build_linux:
runs-on: ubuntu-20.04
container: s1lentq/linux86buildtools:latest
container: debian:11-slim

env:
CMAKE_TOOLCHAIN_FILE: ${{github.workspace}}/cmake/linux-i686.cmake

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: |
dpkg --add-architecture i386
apt-get update
apt-get install -y \
gcc-multilib g++-multilib \
build-essential \
libc6-dev libc6-dev-i386 \
git cmake rsync \
g++ gcc
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: rm -rf build && CC=icc CXX=icpc cmake -B build && cmake --build build -j
run: rm -rf build && CC=gcc CXX=g++ cmake -B build && cmake --build build -j

- name: Deploy artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit c556b53

Please sign in to comment.