Skip to content

Commit

Permalink
give up xmake on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Oct 29, 2024
1 parent 5e45af8 commit 9ddb9dd
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/build-xmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,43 @@ name: build-xmake
on: [ push, pull_request ]

jobs:
build-linux:
strategy:
fail-fast: false
matrix:
toolchain: [gcc, clang]
config: [ release, debug ]
name: Ubuntu / ${{ matrix.config }} / ${{ matrix.toolchain }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Install Dependencies"
run: |
sudo apt-get update
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18 all
sudo apt-get -y install build-essential wget xmake cmake ninja-build uuid-dev libxinerama-dev libxcursor-dev libxi-dev libvulkan-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: "Setup CUDA"
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit
- name: "Setup Vulkan"
uses: humbletim/[email protected]
with:
vulkan-query-version: 1.3.204.0
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- name: "Configure and Build"
run: |
xmake lua setup.lua
xmake f -p linux -a x86_64 --toolchain=${{ matrix.toolchain }} -m ${{ matrix.config }} --cuda_backend=true --enable_dsl=true --enable_gui=true --enable_unity_build=false --enable_tests=true --enable_mimalloc=false --check -c -y
xmake --jobs=16
# build-linux:
# strategy:
# fail-fast: false
# matrix:
# toolchain: [gcc, clang]
# config: [ release, debug ]
# name: Ubuntu / ${{ matrix.config }} / ${{ matrix.toolchain }}
# runs-on: ubuntu-24.04
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - name: "Install Dependencies"
# run: |
# sudo apt-get update
# wget https://apt.llvm.org/llvm.sh
# chmod +x llvm.sh
# sudo ./llvm.sh 18 all
# sudo apt-get -y install build-essential wget xmake cmake ninja-build uuid-dev libxinerama-dev libxcursor-dev libxi-dev libvulkan-dev
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# - name: "Setup CUDA"
# run: |
# wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
# sudo dpkg -i cuda-keyring_1.1-1_all.deb
# sudo apt-get update
# sudo apt-get -y install cuda-toolkit
# - name: "Setup Vulkan"
# uses: humbletim/[email protected]
# with:
# vulkan-query-version: 1.3.204.0
# vulkan-components: Vulkan-Headers, Vulkan-Loader
# vulkan-use-cache: true
# - name: "Configure and Build"
# run: |
# xmake lua setup.lua
# xmake f -p linux -a x86_64 --toolchain=${{ matrix.toolchain }} -m ${{ matrix.config }} --cuda_backend=true --enable_dsl=true --enable_gui=true --enable_unity_build=false --enable_tests=true --enable_mimalloc=false --check -c -y
# xmake --jobs=16

build-macos:
strategy:
Expand Down

0 comments on commit 9ddb9dd

Please sign in to comment.