Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7f98a176f | ||
|
|
3da03fdd7f | ||
|
|
21874e98c2 | ||
|
|
70aa850999 | ||
|
|
b1837571cc |
@@ -14,6 +14,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-appimage:
|
build-appimage:
|
||||||
|
# Only run on GitHub, skip on Gitea
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -59,7 +61,7 @@ jobs:
|
|||||||
UPDATE_INFO: gh-releases-zsync|MihailRis|VoxelEngine-Cpp|latest|*x86_64.AppImage.zsync
|
UPDATE_INFO: gh-releases-zsync|MihailRis|VoxelEngine-Cpp|latest|*x86_64.AppImage.zsync
|
||||||
with:
|
with:
|
||||||
recipe: dev/AppImageBuilder.yml
|
recipe: dev/AppImageBuilder.yml
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: AppImage
|
name: AppImage
|
||||||
path: './*.AppImage*'
|
path: './*.AppImage*'
|
||||||
@@ -8,6 +8,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
# Only run on GitHub, skip on Gitea
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
name: Build
|
name: Build
|
||||||
uses: ./.github/workflows/cmake.yml
|
uses: ./.github/workflows/cmake.yml
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
# Only run on GitHub, skip on Gitea
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
||||||
# You can convert this to a matrix build if you need cross-platform coverage.
|
# You can convert this to a matrix build if you need cross-platform coverage.
|
||||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||||
@@ -39,7 +41,7 @@ jobs:
|
|||||||
# make && make install INSTALL_INC=/usr/include/lua
|
# make && make install INSTALL_INC=/usr/include/lua
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y cmake build-essential libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev libvorbis-dev libgtest-dev libcurl4-openssl-dev
|
sudo apt-get install libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev libvorbis-dev libgtest-dev libcurl4-openssl-dev
|
||||||
# fix luajit paths
|
# fix luajit paths
|
||||||
sudo ln -s /usr/lib/x86_64-linux-gnu/libluajit-5.1.a /usr/lib/x86_64-linux-gnu/liblua-5.1.a
|
sudo ln -s /usr/lib/x86_64-linux-gnu/libluajit-5.1.a /usr/lib/x86_64-linux-gnu/liblua-5.1.a
|
||||||
sudo ln -s /usr/include/luajit-2.1 /usr/include/lua
|
sudo ln -s /usr/include/luajit-2.1 /usr/include/lua
|
||||||
@@ -68,7 +70,7 @@ jobs:
|
|||||||
run: ctest --test-dir ${{github.workspace}}/build
|
run: ctest --test-dir ${{github.workspace}}/build
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
if: ${{ inputs.upload_artifacts }}
|
if: ${{ inputs.upload_artifacts }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: VoxelEngine
|
name: VoxelEngine
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-dmg:
|
build-dmg:
|
||||||
|
# Only run on GitHub, skip on Gitea
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -55,7 +57,7 @@ jobs:
|
|||||||
hdiutil create VoxelEngineMacApp.dmg -volname "VoxelEngine" -srcfolder VoxelEngineDmgContent -ov -format UDZO
|
hdiutil create VoxelEngineMacApp.dmg -volname "VoxelEngine" -srcfolder VoxelEngineDmgContent -ov -format UDZO
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: VoxelEngineMacOs
|
name: VoxelEngineMacOs
|
||||||
path: VoxelEngineMacApp.dmg
|
path: VoxelEngineMacApp.dmg
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
name: Build and Release
|
name: Release
|
||||||
run-name: ${{ github.actor }} preparing release
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
@@ -14,7 +13,31 @@ env:
|
|||||||
RELEASE_VERSION: ${{ github.event.inputs.version || github.ref_name || 'testrelease' }}
|
RELEASE_VERSION: ${{ github.event.inputs.version || github.ref_name || 'testrelease' }}
|
||||||
BRANCH_NAME: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || 'main' }}
|
BRANCH_NAME: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || 'main' }}
|
||||||
jobs:
|
jobs:
|
||||||
|
# Gitea job - create draft release on tag push
|
||||||
|
gitea-draft-release:
|
||||||
|
if: github.server_url != 'https://github.com'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Create Draft Release on Gitea
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref_name }}
|
||||||
|
name: VoxelCore ${{ github.ref_name }}
|
||||||
|
draft: true
|
||||||
|
body: |
|
||||||
|
## VoxelCore Release ${{ github.ref_name }}
|
||||||
|
|
||||||
|
### Downloads
|
||||||
|
Артефакты будут загружены вручную после сборки на GitHub.
|
||||||
|
|
||||||
|
---
|
||||||
|
**Full Changelog**: https://git.pyserve.org/PulseStudio/VoxelEngine/commits/tag/${{ github.ref_name }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# GitHub jobs - full build and release
|
||||||
prepare:
|
prepare:
|
||||||
|
# Only run on GitHub, skip on Gitea
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "exists just for outputs"
|
- run: echo "exists just for outputs"
|
||||||
@@ -44,7 +67,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ env.BRANCH_NAME }}
|
ref: ${{ env.BRANCH_NAME }}
|
||||||
- name: Download Build Artifact
|
- name: Download Build Artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./artifacts
|
path: ./artifacts
|
||||||
- name: Show Artifacts
|
- name: Show Artifacts
|
||||||
@@ -58,35 +81,20 @@ jobs:
|
|||||||
ls -la ./release
|
ls -la ./release
|
||||||
tree ./release
|
tree ./release
|
||||||
- name: Create Tag
|
- name: Create Tag
|
||||||
if: github.event_name == 'workflow_dispatch'
|
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@gitea.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "Gitea Action"
|
git config --local user.name "GitHub Action"
|
||||||
|
|
||||||
TAG_NAME="v${RELEASE_VERSION}"
|
TAG_NAME="v${RELEASE_VERSION}"
|
||||||
git tag -a "${TAG_NAME}" -m "Automated release tag ${TAG_NAME}"
|
git tag -a "${TAG_NAME}" -m "Automated release tag ${TAG_NAME}"
|
||||||
git push origin "${TAG_NAME}"
|
git push origin "${TAG_NAME}"
|
||||||
- name: Create Release with assets
|
env:
|
||||||
uses: softprops/action-gh-release@v1
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Create Release Draft
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ env.RELEASE_VERSION }}
|
tag_name: v${{ env.RELEASE_VERSION }}
|
||||||
name: VoxelCore v${{ env.RELEASE_VERSION }}
|
|
||||||
body: |
|
|
||||||
## VoxelCore Release ${{ env.RELEASE_VERSION }}
|
|
||||||
|
|
||||||
### Downloads
|
|
||||||
- **Linux**: voxelcore-${{ env.RELEASE_VERSION }}_x86-64.AppImage
|
|
||||||
- **macOS**: voxelcore-${{ env.RELEASE_VERSION }}_macos.dmg
|
|
||||||
- **Windows**: voxelcore-${{ env.RELEASE_VERSION }}_win64.zip
|
|
||||||
|
|
||||||
### Installation
|
|
||||||
Download the appropriate file for your platform and run it.
|
|
||||||
|
|
||||||
---
|
|
||||||
**Full Changelog**: https://git.pyserve.org/PulseStudio/VoxelEngine/compare/v0.0.0...v${{ env.RELEASE_VERSION }}
|
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
|
||||||
files: |
|
files: |
|
||||||
./release/*
|
./release/*
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
generate_release_notes: true
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-windows:
|
||||||
|
# Only run on GitHub, skip on Gitea
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -64,7 +66,7 @@ jobs:
|
|||||||
cp build/*.dll packaged/
|
cp build/*.dll packaged/
|
||||||
cp -r build/res/* packaged/res/
|
cp -r build/res/* packaged/res/
|
||||||
mv packaged/VoxelEngine.exe packaged/VoxelCore.exe
|
mv packaged/VoxelEngine.exe packaged/VoxelCore.exe
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Windows-Build
|
name: Windows-Build
|
||||||
path: 'packaged/*'
|
path: 'packaged/*'
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-windows:
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -47,7 +48,7 @@ jobs:
|
|||||||
cp C:/Windows/System32/msvcp140.dll packaged/msvcp140.dll
|
cp C:/Windows/System32/msvcp140.dll packaged/msvcp140.dll
|
||||||
mv packaged/VoxelEngine.exe packaged/VoxelCore.exe
|
mv packaged/VoxelEngine.exe packaged/VoxelCore.exe
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Windows-Build
|
name: Windows-Build
|
||||||
path: 'packaged/*'
|
path: 'packaged/*'
|
||||||
Reference in New Issue
Block a user