Compare commits
4 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35a0f35cf8 | ||
|
|
f9490ceac0 | ||
|
|
4cda311008 | ||
|
|
b3aa653076 |
66
.github/workflows/release.yml
vendored
66
.github/workflows/release.yml
vendored
@@ -10,11 +10,8 @@ on:
|
|||||||
- '*' # Any tag
|
- '*' # Any tag
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux-x86_64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest # build both architectures
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch: [x86_64, arm64] # build both architectures
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -36,20 +33,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.arch }}" = "x86_64" ]; then
|
conan install . --build=missing
|
||||||
conan install . --build=missing
|
conan build .
|
||||||
conan build .
|
|
||||||
else
|
|
||||||
sudo apt-get install -y gcc-aarch64-linux-gnu
|
|
||||||
conan install . --profile linux-arm-profile.txt --build=missing
|
|
||||||
conan build . --profile linux-arm-profile.txt
|
|
||||||
fi
|
|
||||||
|
|
||||||
- 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=$(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"
|
||||||
@@ -60,7 +51,50 @@ 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 }}
|
||||||
|
build-linux-arm64:
|
||||||
|
runs-on: ubuntu-latest-arm # build both architectures
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install build tools
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y flex bison
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
|
||||||
|
- name: Install Conan
|
||||||
|
run: |
|
||||||
|
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=${{ matrix.arch }}
|
||||||
|
FOLDER="chloride-$TAG-$OS-$ARCH"
|
||||||
|
TAR="$FOLDER.tar.gz"
|
||||||
|
mv build/bin "$FOLDER"
|
||||||
|
cp LICENSE.txt "$FOLDER"
|
||||||
|
tar -czf "$TAR" "$FOLDER"
|
||||||
|
echo "TAR_NAME=$TAR" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-arm64-artifact
|
||||||
path: ${{ env.TAR_NAME }}
|
path: ${{ env.TAR_NAME }}
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
@@ -185,7 +219,7 @@ jobs:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-linux, build-macos, build-windows]
|
needs: [build-linux-x86_64, build-linux-arm64, build-macos, build-windows]
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
[settings]
|
|
||||||
os=Linux
|
|
||||||
arch=armv8
|
|
||||||
compiler=gcc
|
|
||||||
compiler.version=12
|
|
||||||
compiler.libcxx=libstdc++11
|
|
||||||
build_type=Release
|
|
||||||
|
|
||||||
[env]
|
|
||||||
CC=aarch64-linux-gnu-gcc
|
|
||||||
CXX=aarch64-linux-gnu-g++
|
|
||||||
AR=aarch64-linux-gnu-ar
|
|
||||||
RANLIB=aarch64-linux-gnu-ranlib
|
|
||||||
LD=aarch64-linux-gnu-ld
|
|
||||||
STRIP=aarch64-linux-gnu-strip
|
|
||||||
Reference in New Issue
Block a user