Compare commits

...

8 Commits

Author SHA1 Message Date
William Bell
35a0f35cf8 add native arm support 2025-08-17 00:49:34 +01:00
William Bell
f9490ceac0 bloody ai 2025-08-16 18:28:50 +01:00
William Bell
4cda311008 bloody ai 2025-08-16 18:25:46 +01:00
William Bell
b3aa653076 incorrect environment variable assignment 2025-08-16 18:20:12 +01:00
William Bell
fc3321bcf0 incorrect package name 2025-08-16 18:18:00 +01:00
William Bell
868b3bfc3d change to cross compile linux 2025-08-16 18:15:32 +01:00
William Bell
f5e241aba0 forgot to add cmake and make 2025-08-16 16:08:06 +01:00
William Bell
8c3ee3fe05 fix --break-system-packages 2025-08-16 15:42:34 +01:00
2 changed files with 23 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ on:
jobs:
build-linux-x86_64:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # build both architectures
steps:
- uses: actions/checkout@v3
with:
@@ -40,7 +40,7 @@ jobs:
run: |
TAG=${GITHUB_REF##refs/tags/}
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
ARCH=${{ matrix.arch }}
FOLDER="chloride-$TAG-$OS-$ARCH"
TAR="$FOLDER.tar.gz"
mv build/bin "$FOLDER"
@@ -51,40 +51,39 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-${{ matrix.arch }}-artifact
name: linux-x86_64-artifact
path: ${{ env.TAR_NAME }}
build-linux-arm64:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-arm # build both architectures
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Install build tools
run: sudo apt-get update && sudo apt-get install -y flex bison
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Run build in arm64 container
- name: Install Conan
run: |
docker run --rm --platform linux/arm64 \
-v $PWD:/work -w /work \
ubuntu:latest \
bash -c "
apt-get update && apt-get install -y python3-pip g++ flex bison &&
pip install conan &&
conan profile detect --force &&
conan install . --build=missing &&
python -m pip install --upgrade pip
pip install conan
conan profile detect
- name: Build
run: |
conan install . --build=missing
conan build .
"
- name: Package
run: |
TAG=${GITHUB_REF##refs/tags/}
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=arm64
ARCH=${{ matrix.arch }}
FOLDER="chloride-$TAG-$OS-$ARCH"
TAR="$FOLDER.tar.gz"
mv build/bin "$FOLDER"
@@ -95,7 +94,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-${{ matrix.arch }}-artifact
name: linux-arm64-artifact
path: ${{ env.TAR_NAME }}
build-macos:
@@ -197,8 +196,8 @@ jobs:
- name: Build Project
run: |
conan install . --profile mingw-profile.txt --build=missing
conan build . --profile mingw-profile.txt
conan install . --profile windows-profile.txt --build=missing
conan build . --profile windows-profile.txt
- name: Package
run: |