Compare commits

..

7 Commits

Author SHA1 Message Date
William Bell
5e7ce495e4 fix runner 2025-08-17 01:12:52 +01:00
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
2 changed files with 23 additions and 24 deletions

View File

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