Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Build linux/x86 #35

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- {os: windows-2022, arch: win32, config: RelWithDebInfo}
- {os: windows-2022, arch: arm64, config: RelWithDebInfo}
- {os: windows-2022, arch: arm, config: RelWithDebInfo}
# - {os: ubuntu-2204, arch: x64, config: RelWithDebInfo} # runner fails for some reason, works fine locally: see https://github.com/actions/runner-images/discussions/7188
# - {os: ubuntu-2204, arch: x86, config: RelWithDebInfo}
- {os: ubuntu-22.04, arch: x64, config: RelWithDebInfo} # runner fails for some reason, works fine locally: see https://github.com/actions/runner-images/discussions/7188
- {os: ubuntu-22.04, arch: x86, config: RelWithDebInfo}

runs-on: ${{ matrix.variants.os }}
outputs:
Expand Down Expand Up @@ -58,10 +58,22 @@ jobs:
wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh
chmod +x /tmp/llvm.sh
sudo /tmp/llvm.sh 17
sudo apt update && sudo apt install -y cmake doxygen clang-17 libc++abi-17-dev libc++-17-dev llvm-17-dev nasm
sudo apt update && sudo apt install -y cmake doxygen clang-17 libc++abi-17-dev libc++-17-dev llvm-17-dev nasm gcc-multilib g++-multilib
echo "NB_CPU=$(grep -c ^processor /proc/cpuinfo)" >> $GITHUB_ENV
echo "CC=clang-17" >> $GITHUB_ENV
echo "CXX=clang++-17" >> $GITHUB_ENV
case "${{ matrix.variants.arch }}" in
x86)
echo "CC=clang-17 -m32" >> $GITHUB_ENV
echo "CXX=clang++-17 -m32" >> $GITHUB_ENV
;;
x64)
echo "CC=clang-17" >> $GITHUB_ENV
echo "CXX=clang++-17" >> $GITHUB_ENV
;;
*)
echo "Invalid architecture"
exit 1
;;
esac

- name: Prepare common environment
run: |
Expand Down Expand Up @@ -141,7 +153,7 @@ jobs:
path: artifact/

# notify:
# runs-on: ubuntu-2204
# runs-on: ubuntu-22.04
# needs: build
# steps:
# - name: Send Discord notification
Expand Down
Loading