Compare commits
1 Commits
c64ae3c2f0
...
v20251031-
| Author | SHA1 | Date | |
|---|---|---|---|
|
6f91e0f0d0
|
@@ -23,6 +23,7 @@ jobs:
|
||||
run: git clone https://dev.npid7.de/tobid7/cross-build
|
||||
- name: Build Targets
|
||||
run: |
|
||||
mkdir -p build_artifacts
|
||||
declare -A TARGETS=(
|
||||
["linux-i386"]="-DCMAKE_TOOLCHAIN_FILE=cross-build/cmake/linux-i386.cmake"
|
||||
["linux-x86_64"]="-DCMAKE_TOOLCHAIN_FILE=cross-build/cmake/linux-x86_64.cmake"
|
||||
@@ -35,9 +36,13 @@ jobs:
|
||||
cmake ${TARGETS[$name]} -DCMAKE_INSTALL_PREFIX=bin-$name -B build-$name .
|
||||
cmake --build build-$name --parallel
|
||||
cmake --install build-$name
|
||||
mkdir -p artifacts/$name
|
||||
cp -r bin-$name/* artifacts/$name/
|
||||
zip -r build_artifacts/${name}.zip bin-$name
|
||||
done
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: linux-builds
|
||||
path: build_artifacts/*.zip
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
@@ -45,10 +50,18 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: |
|
||||
cmake -DCMAKE_INSTALL_PREFIX=bin-macos-universal -DCMAKE_OSX_ARCHITECURE="x86_64;arm64" -B build .
|
||||
mkdir -p build_artifacts
|
||||
cmake -DCMAKE_INSTALL_PREFIX=bin-macos-universal -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -B build .
|
||||
cmake --build build
|
||||
cmake --install build
|
||||
mkdir -p artifacts/macos-universal
|
||||
cp -r bin-macos-universal/* artifacts/macos-universal/
|
||||
zip -r build_artifacts/macos-universal.zip bin-macos-universal
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: macos-build
|
||||
path: build_artifacts/*.zip
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -57,13 +70,10 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Prepare Files
|
||||
run: |
|
||||
mkdir -p release_files
|
||||
for d in artifacts/*; do
|
||||
name=$(basename "$d")
|
||||
zip -r "release_files/$name.zip" "$d"
|
||||
done
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: release_files
|
||||
|
||||
- name: Get Date
|
||||
run: echo "TAG_NAME=v$(date -u +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
|
||||
@@ -73,10 +83,10 @@ jobs:
|
||||
with:
|
||||
token: ${{ secrets.TOKEN }}
|
||||
prerelease: true
|
||||
name: "Dev build ${{ env.TAG_NAME }}"
|
||||
name: "Automated Build ${{ env.TAG_NAME }}"
|
||||
tag_name: ${{ env.TAG_NAME }}
|
||||
body: |
|
||||
**Automated build**
|
||||
**Automated prerelease build**
|
||||
Commit: ${{ github.sha }}
|
||||
Triggered by: ${{ github.actor }}
|
||||
files: release_files/*.zip
|
||||
files: release_files/**/*.zip
|
||||
Reference in New Issue
Block a user