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